SPACE RACERS!

Overview

Space Racers! is a Space Invaders clone for the MBED. The goal is to avoid the oncoming alien onslaught by shooting them with your missiles. The aliens traverse the screen getting lower and lower until they either reach the bottom of the screen or shoot your spaceship player 3 times. To win the game, the user has to shoot all 9 of the enemy aliens. The controls can be handled either with the navigation switch or the Adafruit Bluetooth Connect app Control Pad on your mobile device. Left and Right arrows are used to move the player, the up arrow is used to shoot at the aliens.

/media/uploads/mdargie6/menu.png

Components

  • MBED LPC1768
  • Adafruit BLE
  • Navigation Switch
  • uLCD-144-G2

Implementation

Below is a diagram of the simple video game state machine for the control flow of the game. It starts with the menu, and upon input goes to the PLAY state. As you're playing, based on your performance, it either goes to a WIN screen if you've killed the all the enemies, or a LOSE state if you are killed by the enemies. /media/uploads/mdargie6/states.png

Below is a visual of the classes that were used for the game. Currently the classes used are just an Alien class, Spaceship class (the player), and the Shoot class for the missiles from both the player and the enemy. /media/uploads/mdargie6/classes.png

Wiring

The schematic below shoes the wiring of every component of the hardware for the SPACE RACERS game. This is all that is needed to recreate the project. /media/uploads/mdargie6/schematic.png

Import programSPACERACERS

Space Racers! is a Space Invaders clone for the MBED. The goal is to avoid the oncoming alien onslaught by shooting them with your missiles. The aliens traverse the screen getting lower and lower until they either reach the bottom of the screen or shoot your spaceship player 3 times. To win the game, the user has to shoot all 9 of the enemy aliens. The controls can be handled either with the navigation switch or the Adafruit Bluetooth Connect app Control Pad on your mobile device. Left and Right arrows are used to move the player, the up arrow is used to shoot at the aliens.

users/mdargie6/code/SPACERACERS/


Please log in to post comments.