Changeset 11592
- Timestamp:
- Nov 27, 2017, 1:41:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFigure.cc
r11578 r11592 127 127 SOBGame->addMushroom(); // Tell the gametype to increase points 128 128 mush->hasCollided_ = true; // needed because of destroyLater takes some time and player should receive points only once 129 130 129 131 130 … … 201 200 { 202 201 ball->addTemplate("fireball"); 203 ball->setPosition(spawnpos);204 202 bool direction = ((this->getWorldOrientation().getRoll().valueRadians())>-1.6&&(this->getWorldOrientation().getRoll().valueRadians()<1.6)); 205 203 ball->setDirection(direction); 206 204 orxout() << "Rotation: " << this->getWorldOrientation().getRoll() << " direction: "<< direction <<endl; 207 //ball-> 205 if(direction) 206 { 207 spawnpos.x+=10; 208 } 209 else 210 { 211 spawnpos.x-=10; 212 } 213 ball->setPosition(spawnpos); 208 214 209 215 }
Note: See TracChangeset
for help on using the changeset viewer.