- Timestamp:
- Nov 27, 2017, 3:32:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFigure.cc
r11599 r11601 50 50 #include "SOBCastlestone.h" 51 51 #include "SOBFireball.h" 52 #include "Highscore.h" 52 53 #include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h> 53 54 … … 208 209 bool direction = ((this->getWorldOrientation().getRoll().valueRadians())>-1.6&&(this->getWorldOrientation().getRoll().valueRadians()<1.6)); 209 210 ball->setDirection(direction); 210 orxout() << "Rotation: " << this->getWorldOrientation().getRoll() << " direction: "<< direction <<endl;211 211 if(direction) 212 212 { … … 229 229 230 230 bool inputAllowed = true; 231 //SOB* SOBGame = orxonox_cast<SOB*>(getGametype()); 231 232 232 233 //the particle spawner that generates the fire from the backpack when pressed … … 365 366 velocity.x = 0; 366 367 velocity.y = 20; 368 setOrientation(Vector3::UNIT_Z, Degree(90)); 367 369 } 368 370 if (reachedLvlEndState_ == 4) { 371 //Highscore 372 if (Highscore::exists()){ 373 int score = SOBGame->getPoints(); 374 if(score > Highscore::getInstance().getHighestScoreOfGame("Super Orxo Bros.")) 375 Highscore::getInstance().storeHighscore("Super Orxo Bros.",score); 376 SOBGame->newHighscore=1; 377 378 } 369 379 lvlEnded_ = true; 370 380 dead_ = true;
Note: See TracChangeset
for help on using the changeset viewer.