Changeset 11754 for code/branches/Presentation_HS17_merge
- Timestamp:
- Feb 15, 2018, 11:42:36 PM (7 years ago)
- Location:
- code/branches/Presentation_HS17_merge/src/modules/flappyorx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrx.cc
r11631 r11754 262 262 263 263 //Update Highscore 264 if (Highscore::exists()) {265 int score = this->getPoints();266 if(score > Highscore::getInstance().getHighestScoreOfGame("Flappy Orx"))267 Highscore::getInstance().storeHighscore("Flappy Orx",score);264 if (Highscore::exists()) 265 { 266 int score = this->getPoints(); 267 Highscore::getInstance().storeScore("Flappy Orx", score, this->getPlayer()->getPlayer()); 268 268 } 269 269 … … 281 281 void FlappyOrx::end() 282 282 { 283 if (Highscore::exists()){284 int score = this->getPoints();285 if(score > Highscore::getInstance().getHighestScoreOfGame("Orxonox Arcade"))286 Highscore::getInstance().storeHighscore("Orxonox Arcade",score);287 288 }289 283 GSLevel::startMainMenu(); 290 284 } -
code/branches/Presentation_HS17_merge/src/modules/flappyorx/FlappyOrxShip.cc
r11635 r11754 176 176 velocity.y = 0; 177 177 setPosition(pos); 178 usleep(1000u);179 178 } 180 179 }
Note: See TracChangeset
for help on using the changeset viewer.