Asteroids for mbed
Overview
Asteroids for MBED is inspired by the classic arcade game of the same name. The player controls the spaceship via the Adafruit Bluetooth BLE App for iPhone or Android controller and must avoid being hit by asteroids in the field while firing shots from the spaceship to destroy the asteroids. Once asteroids drift off the screen, they wrap around and reappear on the screen. As the asteroids are shot, they explode into multiple smaller asteroids. If the player clears the screen of all asteroids, a new set of large asteroids appears. Each time the spaceship is hit by an asteroid, a life is deducted. The player is allotted three lives before the game is terminated and restarts.
Warning!
Because this project prints multiple objects on the screen each second, the screen flashes. Please do not use if you are prone to seizures, or stop using if you do not feel well after looking at the screen.
Components
- Mbed Microcontroller
- uLCD-144-G2
- Bluetooth LE UART Friend
- Speaker
- uSD
Wiring
mbed | uLCD header |
---|---|
5V = VU | 5V |
Gnd | Gnd |
TX=P28 | RX |
RX=P27 | TX |
P29 | Reset |
mbed | speaker |
---|---|
P26 | R1 |
mbed | Adafruit BLE |
---|---|
gnd | gnd |
5V = VU | Vin |
gnd | cts |
P10 (Serial RX) | TXO |
P9 (Serial TX) | RXI |
Demo
Program
Import program4180_asteroids
Asteroids for MBED game with Bluetooth LE UART Friend Controller, uLCD, speaker, and uSD.
References
Please log in to post comments.