mwhicks-dev / splat-alpha

2D platforming game engine based in C++ and built on top of the SFML multimedia suite.
0 stars 0 forks source link

Implement Spawnpoint Asset as well as SpawnAsset and DespawnAsset events #70

Closed mwhicks-dev closed 5 months ago

mwhicks-dev commented 5 months ago

Server-side stuff. Spawnpoint will be a !(loaded) Asset with no size whose position is used to determine where Assets are placed given a SpawnAsset event.

SpawnAsset will be an event that sets the target asset as loaded and sets its position to the same position as the Spawnpoint global on the server-side. This will not do anything on the client-side when raised except push the event to the server.

DespawnAsset will simply set the target asset as !(loaded) on the server-side. This will also just push from the client side.