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:
4:673eb9735d44
Improved response to button 1 when entering high scores (HighScoreEntry.cpp).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RichardE 4:673eb9735d44 1 /*
RichardE 4:673eb9735d44 2 * SOURCE FILE : ArenaConst.h
RichardE 4:673eb9735d44 3 *
RichardE 4:673eb9735d44 4 * A few more constants associated with screen coordinates for gameplay arena.
RichardE 4:673eb9735d44 5 *
RichardE 4:673eb9735d44 6 */
RichardE 4:673eb9735d44 7
RichardE 4:673eb9735d44 8 #ifndef ArenaConstIncluded
RichardE 4:673eb9735d44 9
RichardE 4:673eb9735d44 10 #define ArenaConstIncluded
RichardE 4:673eb9735d44 11
RichardE 4:673eb9735d44 12 #include "GameObject.h"
RichardE 4:673eb9735d44 13 #include "GDConst.h"
RichardE 4:673eb9735d44 14 #include "Rectangle.h"
RichardE 4:673eb9735d44 15
RichardE 4:673eb9735d44 16 // Pixel coordinates and dimensions.
RichardE 4:673eb9735d44 17 #define ARENA_MIN_X 8
RichardE 4:673eb9735d44 18 #define ARENA_WIDTH 384
RichardE 4:673eb9735d44 19 #define ARENA_MIN_Y 16
RichardE 4:673eb9735d44 20 #define ARENA_HEIGHT 272
RichardE 4:673eb9735d44 21
RichardE 4:673eb9735d44 22 // Character coordinates and dimensions.
RichardE 4:673eb9735d44 23 #define ARENA_BORDER_X 0
RichardE 4:673eb9735d44 24 #define ARENA_BORDER_Y 1
RichardE 4:673eb9735d44 25 #define ARENA_BORDER_WIDTH 50
RichardE 4:673eb9735d44 26 #define ARENA_BORDER_HEIGHT 36
RichardE 4:673eb9735d44 27
RichardE 4:673eb9735d44 28 // Rectangle defining boundaries of arena.
RichardE 4:673eb9735d44 29 extern Rectangle ArenaRectangle;
RichardE 4:673eb9735d44 30
RichardE 4:673eb9735d44 31 // Start coordinates for player. NOT pixel coordinates.
RichardE 4:673eb9735d44 32 #define PLAYER_START_X GameObject::FromPixel( ( ARENA_MIN_X + ( ( ARENA_WIDTH - SPRITE_PIXEL_WIDTH ) >> 1 ) ) )
RichardE 4:673eb9735d44 33 #define PLAYER_START_Y GameObject::FromPixel( ( ARENA_MIN_Y + ( ( ARENA_HEIGHT - SPRITE_PIXEL_HEIGHT ) >> 1 ) ) )
RichardE 4:673eb9735d44 34
RichardE 4:673eb9735d44 35 #endif
RichardE 4:673eb9735d44 36
RichardE 4:673eb9735d44 37 /* END of ArenaConst.h */
RichardE 4:673eb9735d44 38