Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2017, 3:53:25 PM (7 years ago)
Author:
pascscha
Message:

adjusted death messages

Location:
code/branches/FlappyOrx_HS17/src/modules/flappyorx
Files:
3 edited

Legend:

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

    r11624 r11630  
    256256       
    257257        //Set randomized deathmessages
    258         if(point<10)        sDeathMessage = DeathMessage10[rand()%(DeathMessage10.size())];
     258        if(point<7)         sDeathMessage = DeathMessage7[rand()%(DeathMessage7.size())];
     259        else if(point<20)   sDeathMessage = DeathMessage20[rand()%(DeathMessage20.size())];
    259260        else if(point<30)   sDeathMessage = DeathMessage30[rand()%(DeathMessage30.size())];
    260         else if(point<50)   sDeathMessage = DeathMessage50[rand()%(DeathMessage50.size())];
    261         else                sDeathMessage = DeathMessageover50[rand()%(DeathMessageover50.size())];
     261        else                sDeathMessage = DeathMessageover30[rand()%(DeathMessageover30.size())];
    262262       
    263263        //Update Highscore
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrx.h

    r11624 r11630  
    141141           const std::string Asteroid20[5] = {"Asteroid12_1","Asteroid12_2","Asteroid12_3","Asteroid12_4","Asteroid12_5"};
    142142           
    143             std::vector<std::string> DeathMessage10 = {
     143            std::vector<std::string> DeathMessage7 = {
    144144                "You should really try that again",
    145145                "You can do better, can you?",
     
    152152                "Here's a tip: Try not to fly into these grey thingies.",
    153153                "We won't comment on that."};
    154             std::vector<std::string> DeathMessage30 = {
     154            std::vector<std::string> DeathMessage20 = {
    155155                "Getting better!",
    156156                "Training has paid off, huh?",
     
    161161                "That wasn't crap, not bad",
    162162                "Surprisingly not bad."};
    163             std::vector<std::string> DeathMessage50 = {
     163            std::vector<std::string> DeathMessage30 = {
    164164                "Flappin great",
    165165                "Good job!",
     
    168168                "That was really good,!",
    169169                "We are proud of you"};
    170             std::vector<std::string> DeathMessageover50 = {
     170            std::vector<std::string> DeathMessageover30 = {
    171171                "You're flappin amazing",
    172172                "Fucking great job",
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxHUDinfo.cc

    r11624 r11630  
    8787                        if(messageID==3){
    8888                            setTextSize(0.05);
    89                             this->setCaption("Press fire and then press space to start");
     89                            this->setCaption("First click, then press space to start");
    9090                        }
    9191                    }
Note: See TracChangeset for help on using the changeset viewer.