Changeset 4009 for 2013/23


Ignore:
Timestamp:
2013-06-07 12:03:57 (6 years ago)
Author:
sijoseha
Message:
 
Location:
2013/23/LeoS
Files:
6 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/23/LeoS/Tasohyppelypeli2.cs

    r4006 r4009  
    3737    Image olionkuva3 = LoadImage("Copcar"); 
    3838    Image seina = LoadImage("wall"); 
     39    Image umad = LoadImage("mad"); 
     40    SoundEffect trolli = LoadSoundEffect("badumtss"); 
     41    SoundEffect hah = LoadSoundEffect("gay"); 
    3942    IntMeter elamat; 
    4043    List<PushButton> potionit = new List<PushButton>(); 
     
    4447    { 
    4548        LuoKentta(); 
    46         //MediaPlayer.Play("biaatch"); 
    47         //MediaPlayer.IsRepeating = true; 
     49        MediaPlayer.Play("biaatch"); 
     50        MediaPlayer.IsRepeating = true; 
     51        MediaPlayer.Volume = 50; 
    4852        Gravity = new Vector(0, -2000); 
    4953        elamat = new IntMeter(10, 0, 10); 
    50         elamat.LowerLimit += delegate { homo.Destroy(); }; 
     54        elamat.LowerLimit += delegate {  
     55            homo.Destroy(); 
     56            MediaPlayer.Stop(); 
     57            hah.Play(); 
     58            Widget imaku = new Widget(umad); 
     59            Add(imaku); 
     60         
     61        }; 
    5162        Level.CreateBorders(); 
    5263        tpajastin = new Timer(); 
     
    97108        k.Destroy(); 
    98109        Rapetime(); 
     110        trolli.Play(); 
     111        
    99112         
    100113    } 
Note: See TracChangeset for help on using the changeset viewer.