This activity was created by Sean Stern of the NYC Academy for Software Engineering.
In this project, you will use the accelerometer to control a spaceship in the game Asteroids. The game starts when you click the green flag. Asteroids come from the top of the screen and move down. The player should try to avoid the asteroids by moving the ship using the Finch.
Part 1: The Rules of the Game
In order to control the ship, we’re going to be using the accelerometer on the Finch.