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
Animations.cpp@7:e72691603fd3, 2013-06-08 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
RichardE | 7:e72691603fd3 | 1 | /* |
RichardE | 7:e72691603fd3 | 2 | * SOURCE FILE : Animations.cpp |
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 | #include "Animations.h" |
RichardE | 7:e72691603fd3 | 9 | #include "SpriteImageId.h" |
RichardE | 7:e72691603fd3 | 10 | |
RichardE | 7:e72691603fd3 | 11 | const UInt8 Animations::WomanAnimation[] = { Woman0Image, Woman1Image, Woman2Image, Woman1Image }; |
RichardE | 7:e72691603fd3 | 12 | const UInt8 Animations::ManAnimation[] = { Man0Image, Man1Image, Man2Image, Man1Image }; |
RichardE | 7:e72691603fd3 | 13 | |
RichardE | 7:e72691603fd3 | 14 | // Array containing addresses of all the human animations. |
RichardE | 7:e72691603fd3 | 15 | const UInt8 *Animations::HumanAnimations[ HumanAnimationCount ] = { |
RichardE | 7:e72691603fd3 | 16 | WomanAnimation, |
RichardE | 7:e72691603fd3 | 17 | ManAnimation, |
RichardE | 7:e72691603fd3 | 18 | }; |
RichardE | 7:e72691603fd3 | 19 | |
RichardE | 7:e72691603fd3 | 20 | const UInt8 Animations::CrusherAnimation[] = { Crusher0Image, Crusher1Image, Crusher2Image, Crusher1Image }; |