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!
- Host: GitHub
- URL: https://github.com/bian-sh/unity-drones-multiplayer-tinyrpc
- Owner: Bian-Sh
- License: mit
- Created: 2023-11-28T18:41:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-21T18:26:21.000Z (9 months ago)
- Last Synced: 2025-02-28T16:59:24.146Z (3 months ago)
- Language: C#
- Size: 7.18 MB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

# 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 wellYou 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个做客户端,一个做服务端,这样就可以直接在编辑器中联调啦!

# 无人机操作:
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)
LicenseMIT License