An open API service indexing awesome lists of open source software.

https://github.com/bian-sh/unity-drones-multiplayer-tinyrpc

这是一个为 TinyRPC 准备的简易多人游戏示例,仅仅演示了简单的位置同步!This is a simple multiplayer game example prepared for TinyRPC, only demonstrating basic pose synchronization!
https://github.com/bian-sh/unity-drones-multiplayer-tinyrpc

Last synced: about 2 months ago
JSON representation

这是一个为 TinyRPC 准备的简易多人游戏示例,仅仅演示了简单的位置同步!This is a simple multiplayer game example prepared for TinyRPC, only demonstrating basic pose synchronization!

Awesome Lists containing this project

README

        

# Unity Drones Multiplayer

这是一个简单的多人游戏示例,演示了如何通过 TinyRPC 完成一个可以互相看到对方操控无人机的简单多人游戏。

A sample project to use TinyRPC between client and server to allow multiplayer support for Unity by enabling multiple users to connect and control a drone while watching other players interact with their own drones.

![Preview](./docs/preview.gif)

# Execution on Windows

* Open main folder in Unity, open `File > Build Settings`.
* Build `Scenes/desert` into `./Build/Desert/start.exe`.
* Build `Scenes/server` into `./Build/Server/start.exe`.
* Run `Server/start.exe`
* Run `Desert/start.exe` multiple times
* Connect with a different username on each desert window
* Interact in one window to watch the drone fly in the others as well

You can also execute the server by opening `Scenes/server` in unity and pressing `Play`.

1. 你可以按上面描述的步骤分别打出2个包来体验

2. 你可以通过 [ParrelSync](https://github.com/VeriorPies/ParrelSync) 克隆出2个工程,全都开起来,2个做客户端,一个做服务端,这样就可以直接在编辑器中联调啦!

![](docs/parrellsync.png)

# 无人机操作:

WASD 控制前后左右平移

IKJL控制上升下降左右转弯

# # Resources

* [Unity flying drone tutorial from scratch (10 videos)](https://www.youtube.com/watch?v=3R_V4gqTs_I)
* https://github.com/Bian-Sh/TinyRPC

[GitHub - morsh/unity-drones-multiplayer](https://github.com/morsh/unity-drones-multiplayer)





License

MIT License