Improved game loop
I've spent unreasonable amount of time on it and it doesn't have any immediately visible effect but I've changed all my objects to now be updated in the main game loop which is the proper way of doing this. Previously the creation, update and destruction of objects would take place in various more or less random places.
What this achieves mainly is that I now have full control on where and how the objects are created and updated. For example I can now use postUpdate() method to render stuff on the screen, which is visible as it gets rendered after everything else. This way I've managed to implement player name and health being displayed above the character and also a simple mouse feedback animation.
Improved code should also make a further development easier.
Multiplayer
I've managed to setup multiplayer in the level! Upon joining the multiplayer game you'll now spawn randomly into one of the teams. It is also possible to spawn on the same team as the picture below illustrates one of the teammates being seriously threatened by the AI.
Two clients and a dedicated server running Campus: Deathmatch |