Changeset 10154 for code/branches/surfaceraceHS14
- Timestamp:
- Dec 3, 2014, 5:30:46 PM (10 years ago)
- Location:
- code/branches/surfaceraceHS14
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/data/levels/templates/spaceshipDodgeRace.oxt
r10135 r10154 11 11 initialhealth = 40 12 12 13 shieldhealth = 8014 initialshieldhealth = 8015 maxshieldhealth = 8016 shieldabsorption = 0. 913 shieldhealth = 20 14 initialshieldhealth = 20 15 maxshieldhealth = 20 16 shieldabsorption = 0.1 17 17 reloadrate = 1 18 18 reloadwaittime = 1 -
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.