
This is my first dev diary post. I'm hoping to do this on a semi-regular basis. Over the last few weeks I've been working on the targeting system.
This game is built using my own engine so it was a case of experimenting, failing and then finally settling on a simple and extensible design for weapons, associated explosions and a simple hand written collision detection system.
I wanted to be able to create a new weapon type in a few lines of code, a corresponding explosion animation and custom weapon and explosion sounds.
In addition I wanted to be able to register a collideable thing with the collision system.
The collision system in effect then sits in-between the weapon systems and collideable objects. It performs collision detection and manages the notification of collisions to interested observers.
A short video of it in action is here
If you want to know more about the design and / or have any suggestions for improvement let me know!
Thanks,
Ben.