Single Player Space Invaders
Project Members: Brice Minix , Tito Oyewole
Overview¶
This project is a version of the Nokia space invaders with the following features:
- joystick/ IMU: used to browse through the game menu and control the ship. Clicking the joystick also changes the color of the player.
- pushbutton: used to select an option on the menu screen and shoot sprites at the rows of enemies.
- Speakers: plays music that is in sync with the game (some examples include: victory/losing sound, game menu sound, sprite fired sound e.t.c)
- Levels: In the first level, the player has three lives; in the second level, the player has two lives, and in the third level, the player has one life.
- LED lighting effect: These effects are triggered once the game starts (i.e., at the game menu screen), when the player fires a shot, during a victory e.t.c
- Barriers: four barriers shields the player from the enemy missiles. These barriers break down once they have been hit by a missile or by the player.
- Best Time: This version of space invaders also keeps track of the best time i.e., the fastest time in which the game is completed.
Components Used¶
- mbed
- uLCD
- Pushbutton
- LSM9DS1 IMU
- RGBLED
- Joystick
- SDCard
- Speaker
- class D audio amp
Wiring¶
| mbed | Speaker | Class D audio amp | uLCD header | Pushbutton | RGBLED | IMU | Joystick | SDCard |
|---|---|---|---|---|---|---|---|---|
| GND | pwr - | GND | - | GND | GND | GND | GND | |
| Vout(3.3V) | pwr + | VDD | VCC | VCC | ||||
| p18 | in + | |||||||
| + | out + | |||||||
| - | out - | |||||||
| VU = 5V | 5V (External) | |||||||
| TX = p28 | RX | |||||||
| RX = p27 | TX | |||||||
| p29 | Reset | |||||||
| p20 | + | |||||||
| p21 | Red | |||||||
| p22 | Blue | |||||||
| p23 | Green | |||||||
| p9 | SDA | |||||||
| p10 | SCL | |||||||
| p15 | VERT | |||||||
| p16 | HORZ | |||||||
| p17 | SEL | |||||||
| p8 | CS | |||||||
| p5 | DI | |||||||
| p7 | SCK | |||||||
| p6 | DO | |||||||
| CD |