I'm working on a remix of the old, old, old game Gain Ground.
I've more or less got the mechanics sorted. You pick a character from the right hand side. Each character has 2 attacks depending on the mouse button pressed.
Getting all your characters to the exit, or killing all the enemies takes you to the next level.
If a character is taken out, you can recover their downed state and if you make it to the exit,they will revive for the next map.
The challenge I'm facing is how to organise all the different characters.
So far I've set up an array table. This state each characters current state. So far that is working for me.
However, each character will have different attacks and abilities. So whilst one will fire a long range missile, another will throw a grenade which can hit high up enemies - and so on.
Is it best to also log this info as an array? So if a character has a 1 for alive, then replace the projectile with that sprite?
Or is there a better method? (I hope that makes sense!)
Download file is here