3D isometric client for Realtime Tanks Demo built with Unity and the Colyseus Unity SDK.
- Create a new Unity project (3D) via Unity Hub
- Install the Colyseus SDK: Window → Package Manager → + → Add package from git URL:
https://github.com/colyseus/colyseus-unity-sdk.git#upm - Copy the
Assets/Scripts/folder into your project - Create an empty scene with a
GameManagerobject and attach theGameManager.csscript - Press Play
Make sure the game server is running on port 2567.
The C# schema classes in Assets/Scripts/Schema/ are generated from the server's TypeScript definitions. To regenerate after server schema changes:
cd server
npx schema-codegen src/schema/BattleState.ts --csharp --output ../unity/Assets/Scripts/Schema/- WASD / Arrow keys — Move
- Mouse — Aim turret
- Left click — Shoot
