Watch the full recording (2:20)
Keeping progression on the server
Training troops, upgrading buildings, and PvP attacks all change a player’s saved progress. I put those decisions in brainCloud Cloud Code. The Unity client sends requests and shows the results.
My contributions
- Server logic: Wrote Cloud Code for training, upgrades, resources, attacks, and combat calculations. PvP shield timing and expiration also run on the server.
- Balance settings: Stored building stats, unit balance, and game constants on the backend so they could be changed without a new client build.
- Unity client: Built resource management, base building, army recruitment, inventory, and crafting, all connected to backend state.
- Menus: Used UI Toolkit and a custom MVC framework to build reusable UI components.
Related code
The MVC Framework has public source and an example scene.