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
CharFrame.h
- Committer:
- RichardE
- Date:
- 2013-06-17
- Revision:
- 18:70190f956a24
- Parent:
- 16:d0b142ba4362
File content as of revision 18:70190f956a24:
/* * SOURCE FILE : CharFrame.h * * For drawing rectangular frames using characters. * */ #ifndef CharFrameIncluded #define CharFrameIncluded #include "Types.h" // various types #include "Gameduino.h" // Gameduino stuff class CharFrame { public : /****************/ /* DRAW A FRAME */ /****************/ // Pass Gameduino to draw on in gd. // Pass x coordinate of top left in x. // Pass y coordinate of top left in y. // Pass width in w. // Pass height in h. static void Draw( Gameduino *gd, UInt8 x, UInt8 y, UInt8 w, UInt8 h ); /****************/ /* WIPE A FRAME */ /****************/ // Pass Gameduino to draw on in gd. // Pass x coordinate of top left in x. // Pass y coordinate of top left in y. // Pass width in w. // Pass height in h. static void Wipe( Gameduino *gd, UInt8 x, UInt8 y, UInt8 w, UInt8 h ); }; #endif /* END of CharFrame.h */