tank-royale icon indicating copy to clipboard operation
tank-royale copied to clipboard

Game information as an Observer

Open SirStone opened this issue 1 year ago • 0 comments

I'm building a PWA with a single scope, connecting to a server as observer and draw the battlefield, along with other useful information about the current match itself. Unfortunatly as an Observer Iḿ not able to know what is the size ofe the battlefield, or how many rounds there will be in total, ... alll the info that is contained in the GameSetup basically.

I would like to be able with my PWA to connect to a server in any moment, before or during a match, and still be able to draw the battlefield and showing the match.

I think the best solution to give out the required info to an observer is to pass the GameSetup as soon as the observer connects, same as the BotListUpdate and same as the BotListUpdate, the GameSetup should be provided every time there's a change in it.

Let me know what you think @flemming-n-larsen and others Cheers

SirStone avatar Aug 17 '24 10:08 SirStone