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 14:40:47 2013 +0000
Revision:
5:0b0651ac7832
Now got first real level starting and player can be controlled using joysticks. No bullets, enemies, humans or sound yet.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RichardE 5:0b0651ac7832 1 /*
RichardE 5:0b0651ac7832 2 * SOURCE FILE : LevelData.cpp
RichardE 5:0b0651ac7832 3 *
RichardE 5:0b0651ac7832 4 * Definition of class LevelData.
RichardE 5:0b0651ac7832 5 *
RichardE 5:0b0651ac7832 6 */
RichardE 5:0b0651ac7832 7
RichardE 5:0b0651ac7832 8 #include "LevelData.h"
RichardE 5:0b0651ac7832 9
RichardE 5:0b0651ac7832 10 /***************/
RichardE 5:0b0651ac7832 11 /* CONSTRUCTOR */
RichardE 5:0b0651ac7832 12 /***************/
RichardE 5:0b0651ac7832 13 LevelData::LevelData() {
RichardE 5:0b0651ac7832 14 UInt8 i;
RichardE 5:0b0651ac7832 15 // Ensure all enemies are NULL initially.
RichardE 5:0b0651ac7832 16 for( i = 0; i < MaxEnemies; ++i ) {
RichardE 5:0b0651ac7832 17 Enemies[ i ] = (GameObject*)NULL;
RichardE 5:0b0651ac7832 18 }
RichardE 5:0b0651ac7832 19 // Ensure all humans are NULL initially.
RichardE 5:0b0651ac7832 20 for( i = 0; i < MaxHumans; ++i ) {
RichardE 5:0b0651ac7832 21 Humans[ i ] = (GameObject*)NULL;
RichardE 5:0b0651ac7832 22 }
RichardE 5:0b0651ac7832 23 }
RichardE 5:0b0651ac7832 24
RichardE 5:0b0651ac7832 25 /**************/
RichardE 5:0b0651ac7832 26 /* DESTRUCTOR */
RichardE 5:0b0651ac7832 27 /**************/
RichardE 5:0b0651ac7832 28 LevelData::~LevelData() {
RichardE 5:0b0651ac7832 29 }
RichardE 5:0b0651ac7832 30