Version of Robotron arcade game using LPC1768, a Gameduino shield, a serial EEPROM (for high scores), two microswitch joysticks and two buttons plus a box to put it in. 20 levels of mayhem.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
Diff: GameRobotRic.cpp
- Revision:
- 9:fa7e7b37b632
- Parent:
- 6:8bbdb70bc11c
- Child:
- 10:bfa1c307c99d
--- a/GameRobotRic.cpp Sat Jun 08 17:51:33 2013 +0000 +++ b/GameRobotRic.cpp Sun Jun 09 14:28:53 2013 +0000 @@ -89,6 +89,8 @@ // humans so they would need to be J type to collide with humans. But then player and // enemies are both J type and so collisions between players and enemies are not detected. gd.wr( Gameduino::JK_MODE, 0 ); + // Pass Gameduino to sound manager. + SoundManager::Instance.SetGameduino( &gd ); // Initialise serial EEPROM object which is on same SPI bus as the Gameduino. Ser25LCxxx eeprom( &spi, p14, 32768, 64 ); // Create a high score table that uses the EEPROM.