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:
Sat Jun 08 16:44:54 2013 +0000
Revision:
7:e72691603fd3
Now have grunts wandering around on level 1. They follow the player but since no collision detection logic yet nobody ever gets killed.

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