Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2014, 5:30:46 PM (9 years ago)
Author:
sriedel
Message:

Death now in endGameTimer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.cc

    r10152 r10154  
    175175    void DodgeRace::costLife()
    176176    {
    177         lives--;
     177        orxout() << "CostLife" << endl;
     178        endGameTimer.setTimer(3.0f, false, createExecutor(createFunctor(&DodgeRace::end, this)));
     179
    178180        multiplier = 1;
    179         // end the game in 30 seconds.
    180        // if (lives <= 0)
    181          //   enemySpawnTimer.setTimer(30.0f, false, createExecutor(createFunctor(&DodgeRace::end, this)));
    182181    };
    183182
Note: See TracChangeset for help on using the changeset viewer.