Ignore:
Timestamp:
2013-07-26 12:13:37 (10 years ago)
Author:
alraniko
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/AleksiK/Hazy Maze Game/Hazy Maze Game/Hazy Maze Game/Hazy_Maze_Game.cs

    r4711 r4720  
    160160        SeuraavaKentta(); 
    161161        MediaPlayer.Play("Forest Maze"); 
     162        MediaPlayer.IsRepeating = true; 
    162163    } 
    163164 
     
    214215        } 
    215216 
     217        else if (levelLaskuri.Value == 4) 
     218        { 
     219            Exit(); 
     220        } 
     221 
    216222        LuoElamaLaskuri(); 
    217223        LuoLevelNaytto(); 
     
    247253        elamaLaskuri = new IntMeter(2); 
    248254        elamaLaskuri.MaxValue = 5; 
     255        elamaLaskuri.MinValue = -1; 
    249256 
    250257        Label elamaNaytto = new Label(); 
     
    393400        Add(rajahdyss); 
    394401 
    395         if(elamaLaskuri.Value == 0) 
     402        if(elamaLaskuri.Value == -1) 
    396403        { 
    397404        pelaaja.Destroy(); 
     
    433440            elamaLaskuri.Value += 3; 
    434441        } 
     442 
     443        else if (elamaLaskuri.Value == 4) 
     444        { 
     445            SeuraavaKentta(); 
     446            elamaLaskuri.Value += 3; 
     447        } 
     448 
     449        else if (elamaLaskuri.Value == 5) 
     450        { 
     451            SeuraavaKentta(); 
     452            elamaLaskuri.Value += 3; 
     453        } 
     454 
    435455        else 
    436456        { 
Note: See TracChangeset for help on using the changeset viewer.