I am at present creating a sport in Monogame / C#. I’ve the underlying sport engine arrange within the following manner:
- Entity/Part/System structure
- A Scene features a map, cameras, and a listing of entities
- Techniques act on the highest scene in a scene stack every body
The above strategy is serving me effectively, however I would like the engine to have the ability to address multiplayer video games sooner or later. At the moment, the above structure can address a number of gamers, so long as they’re all the time in the identical scene (because of the 1:1 scene/map relationship).
My query is a basic one — what adjustments would I must make to facilitate a number of gamers who can transfer between scenes independently? My preliminary thought is that I might must decouple scenes from sport screens, however am having bother visualising the connection between scenes and cameras/entities/scene transitions/and so on. on this situation.