Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Realtime Tanks Demo — Unity

Screenshot

3D isometric client for Realtime Tanks Demo built with Unity and the Colyseus Unity SDK.

Setup

  1. Create a new Unity project (3D) via Unity Hub
  2. Install the Colyseus SDK: Window → Package Manager → + → Add package from git URL:
    https://github.com/colyseus/colyseus-unity-sdk.git#upm
    
  3. Copy the Assets/Scripts/ folder into your project
  4. Create an empty scene with a GameManager object and attach the GameManager.cs script
  5. Press Play

Make sure the game server is running on port 2567.

Generating Schema Files

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/

Controls

  • WASD / Arrow keys — Move
  • Mouse — Aim turret
  • Left click — Shoot