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

Committer:
RichardE
Date:
Mon Jun 17 15:10:43 2013 +0000
Revision:
18:70190f956a24
Parent:
7:e72691603fd3
Improved response to button 1 when entering high scores (HighScoreEntry.cpp).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RichardE 7:e72691603fd3 1 /*
RichardE 7:e72691603fd3 2 * SOURCE FILE : GruntObject.cpp
RichardE 7:e72691603fd3 3 *
RichardE 7:e72691603fd3 4 * Represents the grunt enemy object.
RichardE 7:e72691603fd3 5 *
RichardE 7:e72691603fd3 6 */
RichardE 7:e72691603fd3 7
RichardE 7:e72691603fd3 8 #include "GruntObject.h"
RichardE 7:e72691603fd3 9
RichardE 7:e72691603fd3 10 // Speed at which grunt moves.
RichardE 7:e72691603fd3 11 Int16 GruntObject::gruntSpeed = FromPixel( 1 ) >> 2;
RichardE 7:e72691603fd3 12
RichardE 7:e72691603fd3 13 /************************/
RichardE 7:e72691603fd3 14 /* MOVE THE GAME OBJECT */
RichardE 7:e72691603fd3 15 /************************/
RichardE 7:e72691603fd3 16 void GruntObject::ProtectedMove( void ) {
RichardE 7:e72691603fd3 17 MoveTowards( chaseObject, gruntSpeed );
RichardE 7:e72691603fd3 18 }
RichardE 7:e72691603fd3 19