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

Revision:
4:673eb9735d44
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ArenaConst.h	Sat Jun 08 11:24:05 2013 +0000
@@ -0,0 +1,38 @@
+/*
+ * SOURCE FILE : ArenaConst.h
+ *
+ * A few more constants associated with screen coordinates for gameplay arena.
+ *
+ */
+
+#ifndef ArenaConstIncluded
+  
+  #define ArenaConstIncluded
+
+  #include "GameObject.h"
+  #include "GDConst.h"
+  #include "Rectangle.h"
+  
+  // Pixel coordinates and dimensions.
+  #define ARENA_MIN_X 8
+  #define ARENA_WIDTH 384
+  #define ARENA_MIN_Y 16
+  #define ARENA_HEIGHT 272
+  
+  // Character coordinates and dimensions.
+  #define ARENA_BORDER_X 0
+  #define ARENA_BORDER_Y 1
+  #define ARENA_BORDER_WIDTH 50
+  #define ARENA_BORDER_HEIGHT 36
+
+  // Rectangle defining boundaries of arena.
+  extern Rectangle ArenaRectangle;
+    
+  // Start coordinates for player. NOT pixel coordinates.
+  #define PLAYER_START_X GameObject::FromPixel( ( ARENA_MIN_X + ( ( ARENA_WIDTH - SPRITE_PIXEL_WIDTH ) >> 1 ) ) )
+  #define PLAYER_START_Y GameObject::FromPixel( ( ARENA_MIN_Y + ( ( ARENA_HEIGHT - SPRITE_PIXEL_HEIGHT ) >> 1 ) ) )
+
+#endif
+
+/* END of ArenaConst.h */
+