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
EnemyType.h@10:bfa1c307c99d, 2013-06-09 (annotated)
- Committer:
- RichardE
- Date:
- Sun Jun 09 19:34:56 2013 +0000
- Revision:
- 10:bfa1c307c99d
- Parent:
- 7:e72691603fd3
Changed how levels are represented so that dynamic allocation of memory is used. Maple version couldn't do this. Still only 2 levels. Use EnemyFactory whenever creating or destroying enemies.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RichardE | 10:bfa1c307c99d | 1 | /* |
RichardE | 10:bfa1c307c99d | 2 | * SOURCE FILE : EnemyType.h |
RichardE | 10:bfa1c307c99d | 3 | * |
RichardE | 10:bfa1c307c99d | 4 | * Enumeration of all the possible enemy types. |
RichardE | 10:bfa1c307c99d | 5 | * |
RichardE | 10:bfa1c307c99d | 6 | */ |
RichardE | 10:bfa1c307c99d | 7 | |
RichardE | 10:bfa1c307c99d | 8 | #ifndef EnemyTypeIncluded |
RichardE | 10:bfa1c307c99d | 9 | |
RichardE | 10:bfa1c307c99d | 10 | #define EnemyTypeIncluded |
RichardE | 7:e72691603fd3 | 11 | |
RichardE | 10:bfa1c307c99d | 12 | enum EnemyType { |
RichardE | 10:bfa1c307c99d | 13 | Grunt, |
RichardE | 10:bfa1c307c99d | 14 | BlueMeany, |
RichardE | 10:bfa1c307c99d | 15 | Crusher, |
RichardE | 10:bfa1c307c99d | 16 | Brain, |
RichardE | 10:bfa1c307c99d | 17 | BrainBullet, |
RichardE | 10:bfa1c307c99d | 18 | Mutant, |
RichardE | 10:bfa1c307c99d | 19 | EnemyTypeCount // number of different kinds of enemies, MUST COME LAST! |
RichardE | 10:bfa1c307c99d | 20 | }; |
RichardE | 10:bfa1c307c99d | 21 | |
RichardE | 10:bfa1c307c99d | 22 | #endif |
RichardE | 10:bfa1c307c99d | 23 | |
RichardE | 10:bfa1c307c99d | 24 | /* END of EnemyType.h */ |
RichardE | 10:bfa1c307c99d | 25 |