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: GameObjectLocator.h
- Revision:
- 4:673eb9735d44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GameObjectLocator.h Sat Jun 08 11:24:05 2013 +0000 @@ -0,0 +1,34 @@ +/* + * SOURCE FILE : GameObjectLocator.h + * + * Code for randomly positioning objects. + * + */ + +#ifndef GameObjectLocatorIncluded + + #define GameObjectLocatorIncluded + + #include "GameObject.h" + + class GameObjectLocator { + + public : + + /*************************************/ + /* POSITION OBJECT RANDOMLY IN ARENA */ + /*************************************/ + // Pass object to locate in obj. + static void Locate( GameObject *obj ); + + private : + + // Indicates which quadrant to put next object in. + static UInt8 quad; + + }; + +#endif + +/* END of GameObjectLocator.h */ +