Ignore:
Timestamp:
2013-07-22 15:01:25 (10 years ago)
Author:
jumakall
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/27/TeemuM/Game/Game/Game/Game.cs

    r4498 r4529  
    1313    { 
    1414        audio = new AudioPlayer(this, 3); 
    15  
    16         audio.RegisterType("Background", 4); 
    17         audio.RegisterType("Enemyspawn", 0); 
    18         audio.RegisterType("GameOverSound", 0); 
    19         audio.RegisterType("MenuMusic", 0); 
    20         audio.RegisterType("RandomSound", 0); 
    21         audio.RegisterType("ZombieBite", 0); 
    22         audio.RegisterType("Zombiesound", 2); 
    2315    } 
    2416 
     
    4638        menu.AddItemHandler(2, Exit); 
    4739        Add(menu); 
    48         audio.Play("MenuMusic", true); 
    4940    } 
    5041 
     
    7566            else if (commands[0] == "lol") 
    7667            { 
    77                 audio.PlayOne("EasterEgg", false); 
     68 
    7869            } 
    7970            else if (commands[0] == "score") 
     
    202193        AddScoreMeter(); 
    203194        CreateLifeMeter(); 
    204  
    205         audio.Play("Background", true); 
    206195 
    207196        Timer t = new Timer(); 
     
    324313        ClearControls(); 
    325314        Keyboard.Listen(Key.Enter, ButtonState.Pressed, delegate() { MainMenu(); }, null); 
    326         audio.Play("GameOverSound", true); 
    327315        GameObject layer = new GameObject(Game.Screen.Width + 100, Game.Screen.Height + 100); 
    328316        layer.Color = Color.Transparent; 
Note: See TracChangeset for help on using the changeset viewer.