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 board

Wiring

mbeduLCD header
5V = VU5V
GndGnd
TX=P28RX
RX=P27TX
P29Reset
mbedspeaker
P26R1

/media/uploads/ashea6/speaker.png

mbedAdafruit BLE
gndgnd
5V = VUVin
gndcts
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

https://en.wikipedia.org/wiki/Asteroids_%28video_game%29


Please log in to post comments.