top of page
PROTOTYPING

Embark on an epic galactic battle in my hand-coded space wars game, powered by p5.js!

INSTRUCTOR

Hiroshi Mendoza

DURATION

1 week (Feb '23)

This game is inspired by the Space Wars game that we used to play in childhood. It is created to experiment with game design, animations and javascript coding. Game is created on P5.js and the assets are created on figma

How to play?
Use the arrow keys to navigate your spaceship and press the spacebar to shoot lasers. Dodge alien ships and destroy them with the lasers within 20 ammo. You can check the status of the ammo on top right corner. Win the game after reaching score 10. Good luck, pilot!
Choose a spaceship to begin the game

Attack 10 alien spaceships to win the game

Dodge the alien spaceships to survive in the space

Behind the scenes
Through the implementation of P5.js, I've brought the game to life, allowing players to control their spaceship and engage in battles with enemy ships.
It utilizes various classes and functions to handle game elements such as the spaceship selection, movement, lasers, aliens, collisions, and game states.
bottom of page