Hi This my first little game in Pokitto. Im a fresh in C++ So, Wishing your advise!!!!!

Dependencies:   PokittoLib

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?

UserRevisionLine numberNew contents of line
79859899 0:eff664bec7e0 1 #include <stdint.h>
79859899 0:eff664bec7e0 2 #include "Pokitto.h"
79859899 0:eff664bec7e0 3 #include "palette.h"
79859899 0:eff664bec7e0 4 #include "playgame.h"
79859899 0:eff664bec7e0 5 #ifndef ENDGAME_H
79859899 0:eff664bec7e0 6 #define ENDGAME_H
79859899 0:eff664bec7e0 7
79859899 0:eff664bec7e0 8 //Total colors 16
79859899 0:eff664bec7e0 9
79859899 0:eff664bec7e0 10
79859899 0:eff664bec7e0 11
79859899 0:eff664bec7e0 12 void endgame(){
79859899 0:eff664bec7e0 13 //Pokitto::Display::load565Palette(titlegame_pal);
79859899 0:eff664bec7e0 14 if (Pokitto::Core::update()) {
79859899 0:eff664bec7e0 15 //Pokitto::Display::drawBitmap(0,0,title);
79859899 0:eff664bec7e0 16 Pokitto::Display::print(10,20,"YOU LIVED");
79859899 0:eff664bec7e0 17 Pokitto::Display::print(10,40,"SEC");
79859899 0:eff664bec7e0 18 Pokitto::Display::print(40,40,finalTime);
79859899 0:eff664bec7e0 19 Pokitto::Display::print(10,70,"Press B");
79859899 0:eff664bec7e0 20 if(Pokitto::Buttons::bBtn()){
79859899 0:eff664bec7e0 21 gameConditon = 0; // playgame
79859899 0:eff664bec7e0 22 }
79859899 0:eff664bec7e0 23 }
79859899 0:eff664bec7e0 24 }
79859899 0:eff664bec7e0 25 #endif