I have been studying by watching https://www.youtube.com/playlist?list=PLS6sInD7ThM1aUDj8lZrF4b4lpvejB2uB playlist.

I’ve been somewhat stalled because some of the issues around creating the spells relies on having a proper game system setup: opening the game, joining a lobby, starting the actual game.

Having a lobby system in a multiplayer game is a widespread system and numerous games have implemented this. There’s no need to recreate the wheel; I should either use a third party system or find solutions online.

One thing though is that my prefabs are created at runtime, and also have a race condition — the server needs to set up the spells first to pass in the spell IDs to the clients

I also realized that I think too much about potential problems and overengineer my code to solve it before the problem even exists. As they say, perfection is the enemy of good. I’ll get a basic solution working and put TODOs in the Whiteboarding page.


Work

I deleted about half my scripts. I think it’s easier to tear down and follow this lobby tutorial that fits my game better.