Today I changed the player’s projectile code to support mobs firing as well, so the Spider Shooters now shoot. I added bouncing bullets and a power up that grants the player that ability. The reflection code for bouncing was a bit tricky math wise, but otherwise not too bad. The thing that’s got me stumped is how to categorize a weapon vs. a power-up. There are a bunch of properties like fire rate, explosive rounds, etc. I am leaning towards a weapon controlling rate and number of rounds fired and the power-up controlling the rounds themselves. So three-way and rapid would be weapon types and explosive and bouncing would be shot types. Still need a few more types – and I’d like players to have several power ups at one time.
Here’s the latest video: