Ignore:
Timestamp:
2016-07-07 19:27:10 (3 years ago)
Author:
tesatapa
Message:

Gameover, kun elämät ja pelaajat loppuvat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/LevelCreationMethods.cs

    r7985 r7986  
    129129 
    130130            adven.AddCollisionHandler("death", (a, b) => adven.Die()); 
     131            adven.AddCollisionHandler("collectible", (a, b) => pointsCounter.Value += 1000); 
    131132 
    132133            adven.Died += () => 
     
    166167            { 
    167168                Timer.SingleShot(2.0, Respawn); 
    168  
     169                return; 
     170            } 
     171            if (lives.Value == 0 && alive == 0) 
     172            { 
     173                GameOver(); 
    169174            } 
    170175        } 
Note: See TracChangeset for help on using the changeset viewer.