Final P5 Project
- gsantoro2
- Dec 21, 2021
- 1 min read
The final project was to create a game using the things we've learned in class. I wanted to do a rendition of the game Asteroids where there's asteroid floating around and you have to shoot them and avoid getting hit. In the end I ended up just creating a game where you use the mouse to dodge the bouncing asteroids. I was struggling with two main things: the lasers and turning the ship. In the end there is variables for the lasers but I was unable to implement them.
Components:
-The ship: controlled by moving the mouse
-The asteroids: bounce around randomly around screen
-Timer: counts how long you've been playing
-Collision: detecting when the ship collides with an asteroid to prompt a "HIT" in the console log
Comments