public void tick() {
	int xa = 0;
	int ya = 0;

	if (input.up.isPressed())
	    ya--;
	if (input.down.isPressed())
	    ya++;
	if (input.left.isPressed())
	    xa--;
	if (input.right.isPressed())
	    xa++;

	if (xa != 0 || ya != 0) {
	    move(xa, ya);
	    isMoving = true;
	} else {
	    isMoving = false;
	}

	// Scale up the player image (twice as big)
	this.scale = 1;

	if (level.getTile(this.x >> 3, this.y >> 3).getId() == Tile.WATER
		.getId()) {
	    isSwimming = true;
	}

	if (isSwimming
		&& level.getTile(this.x >> 3, this.y >> 3).getId() != Tile.WATER
			.getId()) {
	    isSwimming = false;
	}
	// How many ticks have gone by since we've updated
	tickCount++;
    }