Changeset 10154 for code/branches/surfaceraceHS14/src/modules
- Timestamp:
- Dec 3, 2014, 5:30:46 PM (10 years ago)
- Location:
- code/branches/surfaceraceHS14/src/modules/dodgerace2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.cc
r10152 r10154 175 175 void DodgeRace::costLife() 176 176 { 177 lives--; 177 orxout() << "CostLife" << endl; 178 endGameTimer.setTimer(3.0f, false, createExecutor(createFunctor(&DodgeRace::end, this))); 179 178 180 multiplier = 1; 179 // end the game in 30 seconds.180 // if (lives <= 0)181 // enemySpawnTimer.setTimer(30.0f, false, createExecutor(createFunctor(&DodgeRace::end, this)));182 181 }; 183 182 -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.h
r10152 r10154 102 102 103 103 private: 104 Timer endGameTimer; 105 104 106 WeakPtr<DodgeRaceShip> getPlayer(); 105 107 WeakPtr<DodgeRaceShip> player; -
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc
r10152 r10154 163 163 */ 164 164 165 165 removeHealth(100); 166 166 this->death(); 167 167 return false;
Note: See TracChangeset
for help on using the changeset viewer.