Hi all !. Lately, I’ve jumped into making some simple games with Phaser, just for fun. Created a repository to stash them all in one place.
In this post, I want to share the first one, “Invader”, yet another iteration of “Space Invaders” .
Source code: GitHub Repository
Demo: Invader Demo
Some things I’ve tried in this game:
- Positional Sound: simply by changing the value of the ‘WebAudioSound.pan’ property, I could move the sound to the right or left.
- Gamepad control
- ‘Arcade.Body.directControl’: I’ve used this property to move the enemies without losing collision detection. When an enemy was hit, I would deactivate this property so that inertia and gravity could take effect.
- ‘FX.ColorMatrix.desaturateLuminance()’: adds a touch of drama to the ‘game over’ screen.
Tools used:
- Graphics: Aseprite
- Sound: MPC Beats and Audacity
- Code: Visual Studio Code
Thanks for your time. I hope you like it.