Hi This my first little game in Pokitto. Im a fresh in C++ So, Wishing your advise!!!!!
Dependencies: PokittoLib
lost_main.cpp@2:7af6d9415495, 2018-03-22 (annotated)
- Committer:
- 79859899
- Date:
- Thu Mar 22 07:26:17 2018 +0000
- Revision:
- 2:7af6d9415495
- Parent:
- 0:eff664bec7e0
Hi This my first little game in Pokitto.; Im a fresh in C++; So, Wishing your advise!!!!!; ; V0.4 replace a better title pic and adding a menu that can change different of degree of diffculty.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
79859899 | 0:eff664bec7e0 | 1 | #include "Pokitto.h" |
79859899 | 0:eff664bec7e0 | 2 | #include "playgame.h" |
79859899 | 0:eff664bec7e0 | 3 | #include "titlegame.h" |
79859899 | 0:eff664bec7e0 | 4 | #include "endgame.h" |
79859899 | 0:eff664bec7e0 | 5 | Pokitto::Core game; |
79859899 | 0:eff664bec7e0 | 6 | |
79859899 | 0:eff664bec7e0 | 7 | int main () { |
79859899 | 0:eff664bec7e0 | 8 | game.begin(); |
79859899 | 0:eff664bec7e0 | 9 | |
79859899 | 0:eff664bec7e0 | 10 | |
79859899 | 0:eff664bec7e0 | 11 | while (game.isRunning()) { |
79859899 | 0:eff664bec7e0 | 12 | if(gameConditon == 0){ |
79859899 | 0:eff664bec7e0 | 13 | oldTime = game.getTime(); |
79859899 | 0:eff664bec7e0 | 14 | titlegame(); |
79859899 | 0:eff664bec7e0 | 15 | } |
79859899 | 0:eff664bec7e0 | 16 | if(gameConditon == 1){ |
79859899 | 0:eff664bec7e0 | 17 | playgame(); |
79859899 | 0:eff664bec7e0 | 18 | } |
79859899 | 0:eff664bec7e0 | 19 | if(gameConditon == 2){ |
79859899 | 0:eff664bec7e0 | 20 | endgame(); |
79859899 | 0:eff664bec7e0 | 21 | } |
79859899 | 0:eff664bec7e0 | 22 | |
79859899 | 0:eff664bec7e0 | 23 | |
79859899 | 0:eff664bec7e0 | 24 | |
79859899 | 0:eff664bec7e0 | 25 | //game.display.print(0,0,game.getTime()/1000); |
79859899 | 0:eff664bec7e0 | 26 | //game.display.print(20,0,vbullet.size()); |
79859899 | 0:eff664bec7e0 | 27 | |
79859899 | 0:eff664bec7e0 | 28 | } |
79859899 | 0:eff664bec7e0 | 29 | return 1; |
79859899 | 0:eff664bec7e0 | 30 | } |