Hi This my first little game in Pokitto. Im a fresh in C++ So, Wishing your advise!!!!!
Dependencies: PokittoLib
titlegame.h
- Committer:
- 79859899
- Date:
- 2018-03-22
- Revision:
- 2:7af6d9415495
- Parent:
- 1:8d5b6cdae9df
File content as of revision 2:7af6d9415495:
#include <stdint.h> #include "Pokitto.h" #include "palette.h" //#include "aircraft.h" //#include "bullet.h" #include "playgame.h" #ifndef TITLEGAME_H #define TITLEGAME_H //Total colors 16 int16_t option = 1; // 0:esay 1:normal 2:hard 3:vhard 4:dead const uint8_t title[] = { 110,88, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0,0,0,0,0,3,17,17,17,50,0,0,0,0,0,0,0,3,17,17,17,19,0,3,17,17,17,17,17,17,17,17,17,48,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,49,17,17,17,0,0,0,0,0,0,0,3,17,17,17,17,17,16,0,0,0,0,0,3,17,17,17,17,17,16,3,17,17,17,17,17,17,17,17,17,48,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,49,17,17,17,17,16,0,0,0,0,0,17,17,17,17,17,17,17,32,0,0,0,0,17,17,17,17,17,17,48,3,17,17,17,17,17,17,17,17,17,48,0, 0,0,0,0,0,0,2,0,0,0,0,0,0,49,17,17,16,17,17,16,0,0,0,1,17,17,19,51,49,17,17,16,0,0,0,1,17,17,17,51,49,17,48,3,51,51,51,17,17,19,51,51,51,32,0, 0,0,0,0,0,0,1,16,0,0,0,0,0,49,17,17,48,0,0,0,0,0,0,49,17,19,0,0,0,49,17,17,0,0,0,49,17,19,0,0,0,3,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,0,17,16,0,0,0,0,0,17,17,17,0,0,0,0,0,0,2,17,17,48,0,0,0,3,17,17,48,0,0,17,17,16,0,0,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,1,17,16,0,0,0,0,1,17,17,17,0,0,0,0,0,0,1,17,17,0,0,0,0,0,17,17,16,0,0,17,17,48,0,0,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,17,17,16,0,0,0,0,17,17,17,17,0,0,0,0,0,0,33,17,19,0,0,0,0,0,49,17,18,0,0,17,17,48,0,0,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,1,17,17,0,0,0,0,1,17,17,17,17,0,0,0,0,0,0,49,17,16,0,0,0,0,0,1,17,19,0,0,17,17,48,0,0,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,2,17,17,17,17,0,0,0,0,17,17,17,17,17,0,0,0,0,0,0,17,17,48,0,0,0,0,0,3,17,17,0,0,17,17,18,0,0,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,1,17,17,17,17,0,0,0,1,17,17,17,17,17,0,0,0,0,0,0,17,17,48,0,0,0,0,0,3,17,17,0,0,49,17,17,48,0,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,17,17,17,17,17,17,16,0,1,17,17,17,17,16,0,0,0,0,0,0,17,17,32,0,0,0,0,0,2,17,17,0,0,1,17,17,17,48,0,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,3,17,17,17,17,17,17,17,17,17,17,17,17,17,16,0,0,0,0,0,3,17,17,0,0,0,0,0,0,0,17,17,48,0,0,17,17,17,17,48,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,33,17,17,17,17,17,17,17,17,17,17,17,17,16,0,0,0,0,0,3,17,17,0,0,0,0,0,0,0,17,17,48,0,0,3,17,17,17,17,48,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,49,17,17,17,17,17,17,17,17,17,17,17,17,16,0,0,0,0,0,3,17,17,0,0,0,0,0,0,0,17,17,48,0,0,0,33,17,17,17,19,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,2,17,17,17,17,17,17,17,17,17,17,17,17,17,17,0,0,0,0,0,3,17,17,0,0,0,0,0,0,0,17,17,48,0,0,0,0,35,17,17,17,48,0,0,0,0,49,17,16,0,0,0,0,0, 0,1,17,17,17,17,17,17,17,17,17,17,17,17,17,17,0,0,0,0,0,0,17,17,32,0,0,0,0,0,2,17,17,0,0,0,0,0,0,3,17,17,18,0,0,0,0,49,17,16,0,0,0,0,0, 0,17,17,16,0,1,17,17,17,17,17,17,17,17,17,17,16,0,0,0,0,0,17,17,48,0,0,0,0,0,3,17,17,0,0,0,0,0,0,0,49,17,19,0,0,0,0,49,17,16,0,0,0,0,0, 1,17,16,0,0,0,49,17,17,17,17,17,17,17,17,17,17,0,0,0,0,0,17,17,48,0,0,0,0,0,3,17,17,0,0,0,0,0,0,0,1,17,17,0,0,0,0,49,17,16,0,0,0,0,0, 17,16,0,0,0,0,0,17,17,17,17,17,17,17,17,17,17,17,0,0,0,0,49,17,16,0,0,0,0,0,1,17,19,0,0,0,0,0,0,0,3,17,17,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,0,1,17,17,17,17,17,17,17,17,17,17,17,16,0,0,0,33,17,19,0,0,0,0,0,49,17,18,0,0,0,0,0,0,0,3,17,17,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,0,1,17,17,17,17,17,17,17,17,17,17,17,16,0,0,0,1,17,17,0,0,0,0,0,17,17,16,0,0,0,0,0,0,0,3,17,17,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,0,17,17,17,17,17,17,17,17,17,17,17,17,17,0,0,0,3,17,17,48,0,0,0,3,17,17,48,0,0,0,0,0,0,0,1,17,17,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,1,17,17,17,17,17,17,17,17,17,17,17,17,17,17,16,0,0,17,17,19,0,0,0,49,17,17,0,0,0,17,32,0,0,2,17,17,19,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,16,0,1,17,17,19,51,49,17,17,16,0,0,0,17,17,19,51,17,17,17,48,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,0,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,16,2,17,17,17,17,17,17,17,0,0,0,2,17,17,17,17,17,17,17,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,1,17,17,17,17,17,16,0,0,49,17,17,17,17,17,17,17,17,17,16,3,17,17,17,17,17,48,0,0,0,2,17,17,17,17,17,17,48,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,0,17,17,17,17,17,16,0,0,0,49,17,17,17,17,17,17,17,17,17,17,17,35,17,17,17,48,0,0,0,0,0,2,49,17,17,17,48,0,0,0,0,0,0,49,17,16,0,0,0,0,0, 0,0,0,2,17,17,17,17,17,0,0,0,0,0,0,0,0,17,17,17,17,17,17,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,1,17,17,17,17,0,0,0,0,0,0,0,0,0,0,17,17,17,17,17,17,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,17,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,17,17,17,17,17,17,17,17,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,17,1,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,17,17,17,17,17,17,17,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,1,17,17,17,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,17,17,17,17,17,17,17,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, }; void titlegame(){ Pokitto::Display::load565Palette(titlegame_pal); if (Pokitto::Core::update()) { Pokitto::Display::drawBitmap(0,0,title); Pokitto::Display::print(0,70,"V0.4"); //Pokitto::Display::print(50,70,option); if(Pokitto::Buttons::leftBtn()){ //gameConditon = 1; //Pokitto::Display::clear(); //Pokitto::Core::quit(); // playgame if(option > 0){ --option; } } if(Pokitto::Buttons::rightBtn()){ //gameConditon = 1; //Pokitto::Display::clear(); //Pokitto::Core::quit(); // playgame if(option < 4){ ++option; } } switch(option){ case 0: bullet_amount_max = BULLET_AMOUNT_MAX_EASY; bullet_time_space = BULLET_TIME_SPACE_EASY; Pokitto::Display::print(0,50," EASY >"); break; case 1: bullet_amount_max = BULLET_AMOUNT_MAX_NORMAL; bullet_time_space = BULLET_TIME_SPACE_NORMAL; Pokitto::Display::print(0,50,"<NORMAL>"); break; case 2: bullet_amount_max = BULLET_AMOUNT_MAX_HARD; bullet_time_space = BULLET_TIME_SPACE_HARD; Pokitto::Display::print(0,50,"< HARD >"); break; case 3: bullet_amount_max = BULLET_AMOUNT_MAX_VHARD; bullet_time_space = BULLET_TIME_SPACE_VHARD; Pokitto::Display::print(0,50,"<V HARD>"); break; case 4: bullet_amount_max = BULLET_AMOUNT_MAX_DEAD; bullet_time_space = BULLET_TIME_SPACE_DEAD; Pokitto::Display::print(0,50,"< DEAD "); break; } if(Pokitto::Buttons::aBtn()){ gameConditon = 1; Pokitto::Display::clear(); //Pokitto::Core::quit(); // playgame } } } #endif