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

Committer:
RichardE
Date:
Sat Jun 08 16:44:54 2013 +0000
Revision:
7:e72691603fd3
Now have grunts wandering around on level 1. They follow the player but since no collision detection logic yet nobody ever gets killed.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RichardE 7:e72691603fd3 1 /*
RichardE 7:e72691603fd3 2 * SOURCE FILE : Animations.h
RichardE 7:e72691603fd3 3 *
RichardE 7:e72691603fd3 4 * Animations consisting of arrays of sprite image numbers in program memory.
RichardE 7:e72691603fd3 5 *
RichardE 7:e72691603fd3 6 */
RichardE 7:e72691603fd3 7
RichardE 7:e72691603fd3 8 #ifndef AnimationsIncluded
RichardE 7:e72691603fd3 9
RichardE 7:e72691603fd3 10 #define AnimationsIncluded
RichardE 7:e72691603fd3 11
RichardE 7:e72691603fd3 12 #include "Types.h"
RichardE 7:e72691603fd3 13
RichardE 7:e72691603fd3 14 class Animations {
RichardE 7:e72691603fd3 15
RichardE 7:e72691603fd3 16 public :
RichardE 7:e72691603fd3 17
RichardE 7:e72691603fd3 18 static const UInt8 WomanAnimation[];
RichardE 7:e72691603fd3 19 static const UInt8 ManAnimation[];
RichardE 7:e72691603fd3 20
RichardE 7:e72691603fd3 21 enum {
RichardE 7:e72691603fd3 22 HumanAnimationCount = 2, // number of animations there are for humans
RichardE 7:e72691603fd3 23 };
RichardE 7:e72691603fd3 24
RichardE 7:e72691603fd3 25 // Array containing addresses of all the human animations.
RichardE 7:e72691603fd3 26 static const UInt8 *HumanAnimations[ HumanAnimationCount ];
RichardE 7:e72691603fd3 27
RichardE 7:e72691603fd3 28 static const UInt8 CrusherAnimation[];
RichardE 7:e72691603fd3 29
RichardE 7:e72691603fd3 30 };
RichardE 7:e72691603fd3 31
RichardE 7:e72691603fd3 32 #endif
RichardE 7:e72691603fd3 33
RichardE 7:e72691603fd3 34 // END of Animations.h
RichardE 7:e72691603fd3 35