Lunar Hero

Hunter Maul
Feb 11, 2021
  • mouseIsPressed is used multiple times to change bools
  • There are multiple buttons with hover and click states
  • I made a projectile and collision detection system using bools and conditionals
  • I use conditionals to respawn the asteroids, change the score, etc.
  • I used a for loop to make the background a gradient

THIS IS NOT THE FULL GAME

I couldn’t figure out how to upload external files to Codepen, but in the full version of the game I include custom fonts, sound effects, and I even made background music from scratch, so I would really appreciate if you guys checked that out.

https://editor.p5js.org/huntermaul/sketches/jhvR23BFI

--

--