Some random attempts at programming the retro console
Fork of RETRO_Pong_Mod by
Main.cpp@1:cd8a3926f263, 2014-11-17 (annotated)
- Committer:
- john_ghielec
- Date:
- Mon Nov 17 19:51:24 2014 +0000
- Revision:
- 1:cd8a3926f263
- Parent:
- 0:21669ea33448
- Child:
- 2:6ab46f2e851a
Split game logic out into a game file.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
john_ghielec | 0:21669ea33448 | 1 | #include "mbed.h" |
john_ghielec | 0:21669ea33448 | 2 | |
john_ghielec | 1:cd8a3926f263 | 3 | #include "Game.h" |
john_ghielec | 0:21669ea33448 | 4 | |
john_ghielec | 0:21669ea33448 | 5 | int main() { |
john_ghielec | 1:cd8a3926f263 | 6 | Game game; |
john_ghielec | 1:cd8a3926f263 | 7 | |
john_ghielec | 1:cd8a3926f263 | 8 | game.showSplashScreen(); |
john_ghielec | 0:21669ea33448 | 9 | |
john_ghielec | 0:21669ea33448 | 10 | while (true) { |
john_ghielec | 1:cd8a3926f263 | 11 | game.tick(); |
john_ghielec | 0:21669ea33448 | 12 | |
john_ghielec | 1:cd8a3926f263 | 13 | wait_ms(25); |
john_ghielec | 0:21669ea33448 | 14 | } |
john_ghielec | 0:21669ea33448 | 15 | } |