πŸ‘Ύ

Entities

Entities represent the things in your game world that move around, do things and or otherwise replicate data from the server to your client. These are your players, enemies, items, pickups, explosions in your gameplay. The full game simulation runs on the server, updating each entity in the game world per frame and passes on the minimal details to the client to mock simulation on their end too.

Entities is where you can bring the most of your creativity. The look and feel, the mechanics at play in your game that make it unique happen here and that’s why Entities are built in a way where you have enough freedom to do what you want and decide what data is replicated to the client from the server.

Note: All entities in your game should extend the NetworkEntity class to make sure they can be managed properly across the network. This particular chapter will put base classes up front and example classes after

Base Classes

Example Classes

Helper Classes