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 : BulletVelocityCalculator.h
RichardE 7:e72691603fd3 3 *
RichardE 7:e72691603fd3 4 * Definition of class BulletVelocityCalculator.
RichardE 7:e72691603fd3 5 * Used to calculate the horizontal and vertical velocities necessary for a bullet to
RichardE 7:e72691603fd3 6 * hit a target,
RichardE 7:e72691603fd3 7 *
RichardE 7:e72691603fd3 8 */
RichardE 7:e72691603fd3 9
RichardE 7:e72691603fd3 10 #ifndef BulletVelocityCalculatorDefined
RichardE 7:e72691603fd3 11
RichardE 7:e72691603fd3 12 #define BulletVelocityCalculatorDefined
RichardE 7:e72691603fd3 13
RichardE 7:e72691603fd3 14 #include "Types.h"
RichardE 7:e72691603fd3 15
RichardE 7:e72691603fd3 16 class BulletVelocityCalculator {
RichardE 7:e72691603fd3 17
RichardE 7:e72691603fd3 18 public :
RichardE 7:e72691603fd3 19
RichardE 7:e72691603fd3 20 /*******************************/
RichardE 7:e72691603fd3 21 /* CALCULATE BULLET VELOCITIES */
RichardE 7:e72691603fd3 22 /*******************************/
RichardE 7:e72691603fd3 23 // Pass distances to target in dx and dy.
RichardE 7:e72691603fd3 24 // Pass velocity at which bullet moves in v.
RichardE 7:e72691603fd3 25 // Horizontal and vertical velocities returned in variables pointed to by hv and vv.
RichardE 7:e72691603fd3 26 static void CalculateVelocities( Int16 dx, Int16 dy, Int16 v, Int16 *hv, Int16 *vv );
RichardE 7:e72691603fd3 27
RichardE 7:e72691603fd3 28 };
RichardE 7:e72691603fd3 29
RichardE 7:e72691603fd3 30 #endif
RichardE 7:e72691603fd3 31
RichardE 7:e72691603fd3 32 /* END of BulletVelocityCalculator.h */
RichardE 7:e72691603fd3 33