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
ArenaConst.cpp@4:673eb9735d44, 2013-06-08 (annotated)
- Committer:
- RichardE
- Date:
- Sat Jun 08 11:24:05 2013 +0000
- Revision:
- 4:673eb9735d44
Pulled in more code. Now panel controls are working. Level 0 (attract mode) now goes round an endless loop sending state of panel controls up serial port to PC.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RichardE | 4:673eb9735d44 | 1 | #include "ArenaConst.h" |
RichardE | 4:673eb9735d44 | 2 | #include "GameObject.h" |
RichardE | 4:673eb9735d44 | 3 | |
RichardE | 4:673eb9735d44 | 4 | // Rectangle defining boundaries of arena. |
RichardE | 4:673eb9735d44 | 5 | Rectangle ArenaRectangle( |
RichardE | 4:673eb9735d44 | 6 | GameObject::FromPixel( ARENA_MIN_X ), |
RichardE | 4:673eb9735d44 | 7 | GameObject::FromPixel( ARENA_MIN_Y ), |
RichardE | 4:673eb9735d44 | 8 | GameObject::FromPixel( ARENA_MIN_X + ARENA_WIDTH - 1 ), |
RichardE | 4:673eb9735d44 | 9 | GameObject::FromPixel( ARENA_MIN_Y + ARENA_HEIGHT - 1 ) |
RichardE | 4:673eb9735d44 | 10 | ); |
RichardE | 4:673eb9735d44 | 11 |