- Timestamp:
- Nov 20, 2017, 1:35:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxHUDinfo.cc
r11563 r11565 66 66 if (this->FlappyOrxGame) 67 67 { 68 // if (this->bShowLives_) //preperation for easy mode 69 // { 70 // const std::string& lives = multi_cast<std::string>(this->InvaderGame->getLives()); 71 // this->setCaption(lives); 72 // } 73 if(this->bShowPoints_) 74 { 75 const std::string& points = multi_cast<std::string>(this->FlappyOrxGame->getPoints()); 76 if (not this->FlappyOrxGame->isDead()) 77 { 68 if(not this->FlappyOrxGame->isDead()){ 69 if(this->bShowPoints_){ 70 const std::string& points = multi_cast<std::string>(this->FlappyOrxGame->getPoints()); 78 71 setTextSize(0.04); 79 72 setPosition(Vector2(0.14, 0.02)); … … 81 74 this->setCaption(points); 82 75 } 76 else if(this->bShowGameOver_){ 77 setTextSize(0); 78 } 83 79 } 84 if(this->bShowGameOver_){85 if(this-> FlappyOrxGame->isDead()){80 else{ 81 if(this->bShowGameOver_){ 86 82 std::string message = this->FlappyOrxGame->getDeathMessage(); 87 setTextSize(0. 4);83 setTextSize(0.1); 88 84 setPosition(Vector2(.5, .5)); 89 85 this->setCaption(message); 90 86 this->setColour(ColourValue(1, 0, 0, 1)); 91 87 } 92 93 } 94 88 } 95 89 } 96 90 }
Note: See TracChangeset
for help on using the changeset viewer.