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:
1:dfd5eaaf96a3
Child:
5:0b0651ac7832
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GDConst.h	Wed Jun 05 22:05:41 2013 +0000
@@ -0,0 +1,41 @@
+/*
+ * SOURCE FILE : GDConst.h
+ *
+ * A few more constants associated with the Gameduino hardware.
+ *
+ */
+
+#ifndef GDConstIncluded
+  
+  #define GDConstIncluded
+
+  #define RAM_PIC_SIZE 4096        // size of screen picture RAM
+  #define RAM_CHR_SIZE 4096        // size of character set pixel data RAM
+  #define RAM_PAL_SIZE 2048        // size of character set palette data RAM
+
+  #define SCREEN_CHAR_WIDTH 64     // character width of screen (entire screen, not just visible bit)
+  #define SCREEN_CHAR_HEIGHT 64    // character height of screen (entire screen, not just visible bit)
+  
+  #define VISIBLE_CHAR_WIDTH 50    // character width of visible screen
+  #define VISIBLE_CHAR_HEIGHT 37   // character height of visible screen (actually 37.5)
+
+  #define SPRITE_PIXEL_WIDTH 16
+  #define SPRITE_PIXEL_HEIGHT 16
+
+  #define SPRITE_COUNT 256
+  
+  enum SpriteTransform {
+    STNormal = 0,
+    STRotate90FlipY = 1,
+    STFlipX = 2,
+    STRotate90 = 3,
+    STFlipY = 4,
+    STRotate270 = 5,
+    STRotate180 = 6,
+    STRotate270FlipY = 7,
+  };
+  
+#endif
+
+/* END of GDConst.h */
+