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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Hunter Maul
Hunter Maul

No responses yet

Write a response