Basic game using accelerometer and LCD screen. You can move and dodge asteroids coming from both left and right. There is no scoring at the moment.
Dependencies: C12832 FXOS8700Q mbed-rtos mbed
main.cpp@1:c6734b909bf0, 2016-02-16 (annotated)
- Committer:
- co838_gtvl2
- Date:
- Tue Feb 16 22:25:42 2016 +0000
- Revision:
- 1:c6734b909bf0
- Parent:
- 0:9ec880239b3c
Added boost by pressing the joystick on the shield.; Added mutex to have a better stability.; Still a bug when the game stays for too long. :(
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
co838_gtvl2 | 0:9ec880239b3c | 1 | #include "Game.h" |
co838_gtvl2 | 0:9ec880239b3c | 2 | |
co838_gtvl2 | 0:9ec880239b3c | 3 | int main(void) |
co838_gtvl2 | 0:9ec880239b3c | 4 | { |
co838_gtvl2 | 0:9ec880239b3c | 5 | Game *g = new Game(); |
co838_gtvl2 | 1:c6734b909bf0 | 6 | g->loop(); |
co838_gtvl2 | 0:9ec880239b3c | 7 | delete g; |
co838_gtvl2 | 0:9ec880239b3c | 8 | } |