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

GruntObject.cpp

Committer:
RichardE
Date:
2013-06-08
Revision:
7:e72691603fd3

File content as of revision 7:e72691603fd3:

/*
 * SOURCE FILE : GruntObject.cpp
 *
 * Represents the grunt enemy object.
 *
 */

#include "GruntObject.h"

// Speed at which grunt moves.
Int16 GruntObject::gruntSpeed = FromPixel( 1 ) >> 2;

/************************/
/* MOVE THE GAME OBJECT */
/************************/
void GruntObject::ProtectedMove( void ) {
    MoveTowards( chaseObject, gruntSpeed );
}