Ignore:
Timestamp:
2011-06-10 11:33:09 (9 years ago)
Author:
vikeisal
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2011/23/vikeisal/SpyInTheBase/SpyInTheBase/SpyInTheBase/Peli.cs

    r1875 r1878  
    3333    SoundEffect coinAani = LoadSoundEffect("coinaani"); 
    3434    SoundEffect spydie = LoadSoundEffect("spydie"); 
     35      
     36 
    3537    IntMeter pisteLaskuri; 
    3638    List<Label> valikonKohdat; 
     
    4547    { 
    4648        tuhoutuvat = new List<GameObject>(); 
     49         
    4750 
    4851        Gravity = new Vector(0, -1250); 
     
    203206        Level.BackgroundColor = Color.Black; 
    204207        Level.Background.CreateStars(); 
    205  
     208        MediaPlayer.Play("taustamusiikki"); 
    206209        MessageDisplay.TextColor = Color.White; 
    207210    } 
     
    228231        Level.BackgroundColor = Color.Black; 
    229232        Level.Background.CreateStars(); 
     233        MediaPlayer.Play("taustamusiikki"); 
    230234    } 
    231235 
     
    399403 
    400404            Label naytto = new Label("Kaappasit vihollisen tiedot!"); 
     405            MediaPlayer.Stop(); 
    401406            naytto.Position = Vector.Zero; 
    402407            naytto.TextColor = Color.Green; 
     
    456461            timer.Stop(); 
    457462            Label naytto = new Label("GAME OVER! AIKASI LOPPUI! YOU FAILED!"); 
     463            MediaPlayer.Stop(); 
    458464            naytto.Position = Vector.Zero; 
    459465            naytto.TextColor = Color.Red; 
     
    611617            kohde.Destroy(); 
    612618            spydie.Play(); 
     619            MediaPlayer.Stop(); 
    613620            Label naytto = new Label("GAME OVER! KUOLIT! YOU FAILED!"); 
    614621            naytto.Position = Vector.Zero; 
Note: See TracChangeset for help on using the changeset viewer.