@Override
	public void move()
	{
		/*
		if(mouseLocationX + 30 < x && gunSprites != gunSpritesLeft)
			gunSprites = gunSpritesLeft;
		
		else if(mouseLocationX - 30 > x && gunSprites != gunSpritesRight)
			gunSprites = gunSpritesRight;
		*/
		
		// Control jumps.
		if(y < floor)
			direction.y += jumpIncrement;
		
		else if (y >= floor)
		{
			direction.y = 0;
			jumpCount = 0;
		}
		
		x = (x % maxX + maxX) % maxX;
		
		animation.step(momentumX, direction.x);
		x += direction.x * momentumX;
		y += direction.y * momentumY;
	}