private void ControlPlayer(RenderWindow window) { if (Keyboard.IsKeyPressed(Keyboard.Key.A)) { player.AccelerateLeft(); } if (Keyboard.IsKeyPressed(Keyboard.Key.D)) { player.AccelerateRight(); } if (Keyboard.IsKeyPressed(Keyboard.Key.W)) { player.AccelerateUp(); } if (Keyboard.IsKeyPressed(Keyboard.Key.S)) { player.AccelerateDown(); } if (Keyboard.IsKeyPressed(Keyboard.Key.Space)) { player.Shoot(window); } }