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
Level.cpp@1:dfd5eaaf96a3, 2013-06-05 (annotated)
- Committer:
- RichardE
- Date:
- Wed Jun 05 22:05:41 2013 +0000
- Revision:
- 1:dfd5eaaf96a3
- Parent:
- 0:5fa232ee5fdf
Imported lots more code from the Maple version of the game. Now gets as far as drawing some of the screen for level 0 (the attract mode). Only advises user to operate either joystick to start the game.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RichardE | 0:5fa232ee5fdf | 1 | /* |
RichardE | 0:5fa232ee5fdf | 2 | * SOURCE FILE : Level.cpp |
RichardE | 0:5fa232ee5fdf | 3 | * |
RichardE | 0:5fa232ee5fdf | 4 | * Definition of class Level. |
RichardE | 0:5fa232ee5fdf | 5 | * Base class for all levels. |
RichardE | 0:5fa232ee5fdf | 6 | * |
RichardE | 0:5fa232ee5fdf | 7 | */ |
RichardE | 0:5fa232ee5fdf | 8 | |
RichardE | 0:5fa232ee5fdf | 9 | #include "Level.h" |
RichardE | 0:5fa232ee5fdf | 10 | |
RichardE | 0:5fa232ee5fdf | 11 | /***************/ |
RichardE | 0:5fa232ee5fdf | 12 | /* CONSTRUCTOR */ |
RichardE | 0:5fa232ee5fdf | 13 | /***************/ |
RichardE | 0:5fa232ee5fdf | 14 | Level::Level() : |
RichardE | 0:5fa232ee5fdf | 15 | LevelNumber( 0 ), |
RichardE | 1:dfd5eaaf96a3 | 16 | highScores( (HighScoreTable*)NULL ), |
RichardE | 1:dfd5eaaf96a3 | 17 | gd( (Gameduino*)NULL ) |
RichardE | 0:5fa232ee5fdf | 18 | // player( (PlayerObject*)NULL ) |
RichardE | 0:5fa232ee5fdf | 19 | { |
RichardE | 0:5fa232ee5fdf | 20 | } |
RichardE | 0:5fa232ee5fdf | 21 | |
RichardE | 0:5fa232ee5fdf | 22 | /**************/ |
RichardE | 0:5fa232ee5fdf | 23 | /* DESTRUCTOR */ |
RichardE | 0:5fa232ee5fdf | 24 | /**************/ |
RichardE | 0:5fa232ee5fdf | 25 | Level::~Level() { |
RichardE | 0:5fa232ee5fdf | 26 | } |
RichardE | 0:5fa232ee5fdf | 27 | |
RichardE | 1:dfd5eaaf96a3 | 28 |