No matter how many graphically intensive games we play, millennials will still cherish their memories of playing simple games on an arcade machine. One such game is “Space Invaders”. At the time of its launch, it was a marvelous piece of computer code. However, it can now be easily replicated and run on a browser using a wonderful JavaScript library Kaboom.js.
Kaboom.js allows to easily import sprites into a project and make game objects using it. The game environment can be effortlessly designed by writing a string in which characters represent each game object. Game physics like gravity, collision, explosion, etc. are already packaged in the library and can be implemented by just calling a function.
This project is a simple application of the Kaboom.js library that replicates a single level of space invaders. For now, it only has one wave of invaders but in the future more waves and levels will be added to the game so stay tuned for that 😉.