For this demo I decided I wanted to do something a little longer. See how many monsters you can kill before you succumb to the inevitable.
Hold the left mouse button to strafe.
It still needs a lot of polish, but it’s a good starting point for developing something more complex. Later on, when I have the time, I’ll have a go at fleshing it out. Give the monsters more of a bite, they’re too easy to dodge at the moment. Monster bullets, levels, bosses, collectibles, player upgrades, sound … what else?
If you decide to take a peek at the code, you’ll notice the sudden increase in .js files. I’ve moved on to using Phaser’s templates as a way of organising my code. It sets everything up to load in stages, with space for a preloader bar and logo screen if needed. Useful for when my demos start getting bigger.
As an aside, here’s the fun little game I shamelessly ripped my idea from, Death Vs Monstars. And of course, here’s a link to my code.