Space Game

Simple Space Game

This project takes in user input from a navigation switch and a single pushbutton and allows the user to play a simple game on a uLCD. The player is a space ship that can always faces up but can move within the bounds of the screen freely. Enemies spawn at the top of the screen and fly down shooting at the player. Only enemy shots can collide with and damage the player. Enemies are destroyed by firing at them with the pushbutton. A title screen and game over screen are loaded from a uSD card plugged directly into the uLCD. Healthbars display life left for the enemies and player. When the health drops to zero for enemies they disappear. When the player drops to zero health the game over screen is displayed and the game loop exits.

The project can be found at:

Import programSpaceGame

Simple vertical scrolling space shooter game using navigation switch (joystick), uLCD-144-G2, and a pushbutton switch.

Example Video:

Connections for the uLCD, navigation switch, and pushbutton are shown below.

/media/uploads/jaspinall3/tablesspacegame.png

Below is a picture of the project wired completely.

/media/uploads/jaspinall3/spacegame.jpg


Please log in to post comments.