Exemplo n.º 1
0
 private void acceleratePlayer()
 {
     if (movingLeft)
     {
         player.thrustLeft();
     }
     if (movingRight)
     {
         player.thrustRight();
     }
     if (movingUp)
     {
         player.thrustUp();
     }
     if (movingDown)
     {
         player.thrustDown();
     }
 }