Space Invaders

article image

Using P5.js I created a simplified version of the classic arcade game Space Invaders. The game had 3 main constructors, the aliens, the ship and the bullets. along with using the p5 setup to pull everything together.

Creating states for win and lose games as well as a press start screen and high score. The keyboard handled the controls using p5’s KeyPressed() and KeyReleased() to make our ship stop moving when the keys are released.

Creating games in javascript with P5.js made me think about solutions to problems I necessarily wouldn’t have had the chance to come across without making games, it’s a hardwork but mentally very exciting.