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
LevelData.h
00001 /* 00002 * SOURCE FILE : LevelData.h 00003 * 00004 * Definition of class LevelData. 00005 * 00006 */ 00007 00008 #ifndef LevelDataDefined 00009 00010 #define LevelDataDefined 00011 00012 #include "GameObject.h" 00013 #include "EnemyObject.h" 00014 #include "HumanObject.h" 00015 #include "MutantObject.h" 00016 00017 class LevelData { 00018 00019 public : 00020 00021 enum { 00022 MaxEnemies = 64, // Maximum number of enemies you can have in a level 00023 MaxHumans = 24, // maximum number of humans you can have in a level 00024 }; 00025 00026 // Array containing pointers to all the enemies in a level. 00027 // A null pointer indicates an unused or dead enemy. 00028 GameObject *Enemies[ MaxEnemies ]; 00029 00030 // Array containing pointers to all the humans in a level. 00031 // A null pointer indicates an unused or rescued human. 00032 GameObject *Humans[ MaxHumans ]; 00033 00034 /***************/ 00035 /* CONSTRUCTOR */ 00036 /***************/ 00037 LevelData(); 00038 00039 /**************/ 00040 /* DESTRUCTOR */ 00041 /**************/ 00042 virtual ~LevelData(); 00043 00044 }; 00045 00046 #endif 00047 00048 /* END of LevelData.h */ 00049
Generated on Tue Jul 12 2022 21:10:36 by 1.7.2