top of page
Asteroid Game

For my final project for the Creative Computing class, I made an asteroid game with p5.js and Arduino. Using a joystick connected to Arduino, the user can control the trajectory of an asteroid. Initially, the asteroid appears on the left side of the screen. Through moving the joystick across the x-axis, the user can adjust the initial angle of the asteroid. By pressing the key on the joystick, the user releases the asteroid, which will start moving in the designated angle. The player gets 1 point when the asteroid bounces off the wall, and loses 5 points when it hits the planet. Additionally, the player gets 10 points every time the asteroid hits the sun. 

The inspiration for this game comes from the classic breakout games and bubble shooter games. I have always loved these games as they require both precision and strategy. In fact, the mechanism of my game can be described as a combination of breakout and bubble shooter. Instead of trying to hit a target, my game asks the user to avoid certain obstacles in order to reach a final destination in each level. 

bottom of page