Space invaders with a nRF2401A wireless joypad
Dependencies: Gameduino mbed nRF2401A
Fork of Gameduino_Invaders_game by
Gameduino and an nRF2401A hooked up to an mbed on an mbeduino:
game.h@5:3ede9991d8e0, 2014-03-09 (annotated)
- Committer:
- TheChrisyd
- Date:
- Sun Mar 09 12:27:20 2014 +0000
- Revision:
- 5:3ede9991d8e0
- Parent:
- 2:20a89dc286d5
Update to match Library update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TheChrisyd | 2:20a89dc286d5 | 1 | //#include <SPI.h> |
TheChrisyd | 2:20a89dc286d5 | 2 | #include "GD.h" |
TheChrisyd | 2:20a89dc286d5 | 3 | #include "joystick.h" |
TheChrisyd | 2:20a89dc286d5 | 4 | #include "shield.h" |
TheChrisyd | 2:20a89dc286d5 | 5 | #include "mbed.h" |
TheChrisyd | 2:20a89dc286d5 | 6 | #include "arduino.h" |
TheChrisyd | 2:20a89dc286d5 | 7 | /*--------------------------------------------- |
TheChrisyd | 2:20a89dc286d5 | 8 | Data types |
TheChrisyd | 2:20a89dc286d5 | 9 | ---------------------------------------------*/ |
TheChrisyd | 2:20a89dc286d5 | 10 | typedef char int8; |
TheChrisyd | 2:20a89dc286d5 | 11 | |
TheChrisyd | 2:20a89dc286d5 | 12 | /*--------------------------------------------- |
TheChrisyd | 2:20a89dc286d5 | 13 | Header files |
TheChrisyd | 2:20a89dc286d5 | 14 | ---------------------------------------------*/ |
TheChrisyd | 2:20a89dc286d5 | 15 | #include "utils.h" |
TheChrisyd | 2:20a89dc286d5 | 16 | #include "graphics.h" |
TheChrisyd | 2:20a89dc286d5 | 17 | #include "sound.h" |
TheChrisyd | 2:20a89dc286d5 | 18 | |
TheChrisyd | 2:20a89dc286d5 | 19 | /*--------------------------------------------- |
TheChrisyd | 2:20a89dc286d5 | 20 | Game functions |
TheChrisyd | 2:20a89dc286d5 | 21 | ---------------------------------------------*/ |
TheChrisyd | 2:20a89dc286d5 | 22 | void initGame(); // Called once from setup() |
TheChrisyd | 2:20a89dc286d5 | 23 | void updateGame(); // Called from loop() to update the game |
TheChrisyd | 2:20a89dc286d5 | 24 | |
TheChrisyd | 2:20a89dc286d5 | 25 | extern Joystick joystick; |