Exemple #1
0
 private void KeyDownMessageRecieved(KeyDownMessage obj)
 {
     if (obj.Key == Key.Escape)
     {
         if (_world.Status == GameStatus.Running)
             Pause();
         else if (_world.Status == GameStatus.Paused)
             Resume();
     }
 }
Exemple #2
0
 private void KeyDownMessageRecieved(KeyDownMessage obj)
 {
     if (Status == GameStatus.Running && obj.Key == Key.Space)
         Bird.QueueJump(0.5);
 }