- Timestamp:
- Dec 4, 2017, 2:38:03 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.cc
r11620 r11624 21 21 * 22 22 * Author: 23 * Florian Zinggeler 23 * FLeo Merholz 24 * Pascal Schärli 24 25 * Co-authors: 25 26 * ... … … 52 53 deathTime = 0; 53 54 54 particleLifespan = 0. 1;55 particleLifespan = 0.08; 55 56 particleAge = 0; 56 57 … … 119 120 if (camera != nullptr) 120 121 { 121 //camera->setPosition(Vector3(-pos.z, -pos.y, 0));122 122 camera->setPosition(pos.x,-100,0); 123 123 camera->setOrientation(Vector3::UNIT_Z, Degree(0)); … … 138 138 139 139 int FlappyOrxShip::timeUntilRespawn(){ 140 return 2-time(0)+deathTime;140 return 1-time(0)+deathTime; 141 141 } 142 142 … … 154 154 } 155 155 156 // void FlappyOrxShip::rotateRoll(const Vector2& value) 157 // { 158 // if (getGame()) 159 // if (getGame()->bEndGame) 160 // getGame()->end(); 161 // } 162 156 163 157 FlappyOrx* FlappyOrxShip::getGame() 164 158 { … … 177 171 deathTime = time(0); 178 172 179 orxout()<<"death time: "<<deathTime<<std::endl;173 //orxout()<<"death time: "<<deathTime<<std::endl; 180 174 Vector3 pos = getPosition(); 181 175 pos.x = 0;
Note: See TracChangeset
for help on using the changeset viewer.