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
GDConst.h@1:dfd5eaaf96a3, 2013-06-05 (annotated)
- Committer:
- RichardE
- Date:
- Wed Jun 05 22:05:41 2013 +0000
- Revision:
- 1:dfd5eaaf96a3
- Child:
- 5:0b0651ac7832
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 | 1:dfd5eaaf96a3 | 1 | /* |
RichardE | 1:dfd5eaaf96a3 | 2 | * SOURCE FILE : GDConst.h |
RichardE | 1:dfd5eaaf96a3 | 3 | * |
RichardE | 1:dfd5eaaf96a3 | 4 | * A few more constants associated with the Gameduino hardware. |
RichardE | 1:dfd5eaaf96a3 | 5 | * |
RichardE | 1:dfd5eaaf96a3 | 6 | */ |
RichardE | 1:dfd5eaaf96a3 | 7 | |
RichardE | 1:dfd5eaaf96a3 | 8 | #ifndef GDConstIncluded |
RichardE | 1:dfd5eaaf96a3 | 9 | |
RichardE | 1:dfd5eaaf96a3 | 10 | #define GDConstIncluded |
RichardE | 1:dfd5eaaf96a3 | 11 | |
RichardE | 1:dfd5eaaf96a3 | 12 | #define RAM_PIC_SIZE 4096 // size of screen picture RAM |
RichardE | 1:dfd5eaaf96a3 | 13 | #define RAM_CHR_SIZE 4096 // size of character set pixel data RAM |
RichardE | 1:dfd5eaaf96a3 | 14 | #define RAM_PAL_SIZE 2048 // size of character set palette data RAM |
RichardE | 1:dfd5eaaf96a3 | 15 | |
RichardE | 1:dfd5eaaf96a3 | 16 | #define SCREEN_CHAR_WIDTH 64 // character width of screen (entire screen, not just visible bit) |
RichardE | 1:dfd5eaaf96a3 | 17 | #define SCREEN_CHAR_HEIGHT 64 // character height of screen (entire screen, not just visible bit) |
RichardE | 1:dfd5eaaf96a3 | 18 | |
RichardE | 1:dfd5eaaf96a3 | 19 | #define VISIBLE_CHAR_WIDTH 50 // character width of visible screen |
RichardE | 1:dfd5eaaf96a3 | 20 | #define VISIBLE_CHAR_HEIGHT 37 // character height of visible screen (actually 37.5) |
RichardE | 1:dfd5eaaf96a3 | 21 | |
RichardE | 1:dfd5eaaf96a3 | 22 | #define SPRITE_PIXEL_WIDTH 16 |
RichardE | 1:dfd5eaaf96a3 | 23 | #define SPRITE_PIXEL_HEIGHT 16 |
RichardE | 1:dfd5eaaf96a3 | 24 | |
RichardE | 1:dfd5eaaf96a3 | 25 | #define SPRITE_COUNT 256 |
RichardE | 1:dfd5eaaf96a3 | 26 | |
RichardE | 1:dfd5eaaf96a3 | 27 | enum SpriteTransform { |
RichardE | 1:dfd5eaaf96a3 | 28 | STNormal = 0, |
RichardE | 1:dfd5eaaf96a3 | 29 | STRotate90FlipY = 1, |
RichardE | 1:dfd5eaaf96a3 | 30 | STFlipX = 2, |
RichardE | 1:dfd5eaaf96a3 | 31 | STRotate90 = 3, |
RichardE | 1:dfd5eaaf96a3 | 32 | STFlipY = 4, |
RichardE | 1:dfd5eaaf96a3 | 33 | STRotate270 = 5, |
RichardE | 1:dfd5eaaf96a3 | 34 | STRotate180 = 6, |
RichardE | 1:dfd5eaaf96a3 | 35 | STRotate270FlipY = 7, |
RichardE | 1:dfd5eaaf96a3 | 36 | }; |
RichardE | 1:dfd5eaaf96a3 | 37 | |
RichardE | 1:dfd5eaaf96a3 | 38 | #endif |
RichardE | 1:dfd5eaaf96a3 | 39 | |
RichardE | 1:dfd5eaaf96a3 | 40 | /* END of GDConst.h */ |
RichardE | 1:dfd5eaaf96a3 | 41 |