Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2017, 1:35:53 PM (6 years ago)
Author:
pascscha
Message:

death message initiated2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxHUDinfo.cc

    r11563 r11565  
    6666        if (this->FlappyOrxGame)
    6767        {
    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());
    7871                    setTextSize(0.04);
    7972                    setPosition(Vector2(0.14, 0.02));
     
    8174                    this->setCaption(points);
    8275                }
     76                else if(this->bShowGameOver_){
     77                    setTextSize(0);
     78                }
    8379            }
    84             if(this->bShowGameOver_){
    85                 if(this->FlappyOrxGame->isDead()){
     80            else{
     81                if(this->bShowGameOver_){
    8682                    std::string message = this->FlappyOrxGame->getDeathMessage();
    87                     setTextSize(0.4);
     83                    setTextSize(0.1);
    8884                    setPosition(Vector2(.5, .5));
    8985                    this->setCaption(message);
    9086                    this->setColour(ColourValue(1, 0, 0, 1));
    9187                }
    92 
    93             }
    94            
     88            }   
    9589        }
    9690    }
Note: See TracChangeset for help on using the changeset viewer.