Changeset 4496 for 2013/27


Ignore:
Timestamp:
2013-07-05 12:39:00 (6 years ago)
Author:
jumakall
Message:
 
File:
1 edited

Legend:

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

    r4489 r4496  
    322322    { 
    323323        ClearControls(); 
     324        Keyboard.Listen(Key.Enter, ButtonState.Pressed, delegate() { MainMenu(); }, null); 
    324325        audio.Play("GameOverSound", true); 
    325326        GameObject layer = new GameObject(Game.Screen.Width + 100, Game.Screen.Height + 100); 
     
    334335        Add(txt, 1); 
    335336 
    336         PushButton r = new PushButton("Play again"); 
     337        PushButton r = new PushButton("Return to menu"); 
    337338        r.X = player.X; 
    338339        r.Y = player.Y - Screen.Height / 4; 
    339         r.Clicked += delegate() { ClearAll(); MainMenu(); }; 
     340        r.Clicked += delegate() { MainMenu(); }; 
    340341        Add(r, 1); 
    341342 
Note: See TracChangeset for help on using the changeset viewer.