Pseudo code:
Main goals:
-
Create a canvas and a black background.
-
Create a ship at the bottom of the screen.
-
Allow that ship to move to the left or right when the user clicks on the approprate keyboard button.
-
When the user clicks on the space bar, allow for a projectile to shoot from the ship upward.
-
Create an enemy that can be destroyed when the projectile hits it.
-
Display a win screen if enemy has been destroyed.
Extra credit:
- Allow the enemy to move in a pattern similar to traditional space invaders.
- Allow the enemy to be able to hurt the player when touched (one hit kills are ok)
- Create a way to reset the board
- Track the users score
- Number of hits
- Number of ships remaining
- Randomize enemy speed.