Changeset 6159 for 2015/26/ohjaajat


Ignore:
Timestamp:
2015-06-23 10:29:47 (4 years ago)
Author:
jotapoti
Message:

Add keyboard listeners for F1 & Escape

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/ohjaajat/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun/HillbillyRun.cs

    r6156 r6159  
    140140        //Keyboard.Listen(Key.Right, ButtonState.Down, delegate { players[1].Walk(Direction.Right); }, "Player 2 moves right"); 
    141141        //Keyboard.Listen(Key.Up, ButtonState.Down, delegate { players[1].Jump(1000); }, "Player 2 jumps"); 
     142 
     143        Keyboard.Listen(Key.F1, ButtonState.Pressed, ShowControlHelp, "Show help"); 
     144        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, "Exit game"); 
    142145    } 
    143146 
Note: See TracChangeset for help on using the changeset viewer.