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: LevelData.cpp
- Revision:
- 5:0b0651ac7832
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LevelData.cpp Sat Jun 08 14:40:47 2013 +0000 @@ -0,0 +1,30 @@ +/* + * SOURCE FILE : LevelData.cpp + * + * Definition of class LevelData. + * + */ + +#include "LevelData.h" + +/***************/ +/* CONSTRUCTOR */ +/***************/ +LevelData::LevelData() { + UInt8 i; + // Ensure all enemies are NULL initially. + for( i = 0; i < MaxEnemies; ++i ) { + Enemies[ i ] = (GameObject*)NULL; + } + // Ensure all humans are NULL initially. + for( i = 0; i < MaxHumans; ++i ) { + Humans[ i ] = (GameObject*)NULL; + } +} + +/**************/ +/* DESTRUCTOR */ +/**************/ +LevelData::~LevelData() { +} +