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
Diff: ArenaConst.cpp
- Revision:
- 4:673eb9735d44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ArenaConst.cpp Sat Jun 08 11:24:05 2013 +0000 @@ -0,0 +1,11 @@ +#include "ArenaConst.h" +#include "GameObject.h" + +// Rectangle defining boundaries of arena. +Rectangle ArenaRectangle( + GameObject::FromPixel( ARENA_MIN_X ), + GameObject::FromPixel( ARENA_MIN_Y ), + GameObject::FromPixel( ARENA_MIN_X + ARENA_WIDTH - 1 ), + GameObject::FromPixel( ARENA_MIN_Y + ARENA_HEIGHT - 1 ) +); +