Giter Site home page Giter Site logo

rust_mir2's Introduction

Info

The game demo written by godot rust implements simple websocket communication, most of the game logic is developed using rust, and the websocket client and server are developed based on tokio .

rust_mir2

rust+godot Gdnative 写的传奇2 demo

安装流程

.需要安装 Godot引擎 3.4 版本

.安装 rust 开发环境

demo的服务器端代码(websocket serve code) rust写,下载地址

https://github.com/529124368/rust_websocket_demo

编译命令 : cargo build --release

客户端代码 (game client code)

代码包含rust脚本代码 + godot工程代码

先下载代码,同样执行下面的编译命令

编译命令 : cargo build --release

然后打开godot引擎,用godot引擎打开工程里的 project.godot文件,即进入游戏编辑器画面,然后点击引擎内的运行按钮,就可以运行游戏。

image

服务器端

image

客户端

image

实现了人物移动 ,同屏多人移动,在线聊天,其他没了。

游戏操作

左键移动,右键放技能+攻击

F1按一下切换技能 -》 半月弯刀 F2按一下切换技能 -》 烈火剑法

rust_mir2's People

Contributors

529124368 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.