@Override
	protected void onMove() {
		
		// Gravedad
		if (playerFalling) playerSpeedY += gravity * App.getFTime();
		
		playerX += playerSpeedX * App.getFTime(); // Movimiento horizontal
		playerY += playerSpeedY * App.getFTime(); // Movimiento vertical

		// Evita que se salga por los laterales de la ventana
		if (playerX < 0) playerX = 0;
		if (playerX + playerW > Window.getW()) playerX = Window.getW() - playerW;
		// Evita que pase del suelo
		if (playerY + playerH > groundY) {
			playerY = groundY - playerH;
			playerSpeedY = 0.0f;
			playerFalling = false;
		}
		
	}