@Override
	public void render(Graphics g) {
		g.drawImage(texture,
				(int) x + Tile.SIZE / 4, (int) (-yoffset / 8 + y + Tile.SIZE / 4), (int) x + Tile.SIZE / 4 * 3, (int) (-yoffset / 8 + y + Tile.SIZE / 4 * 3),
				0, 0, texture.getWidth(null), texture.getHeight(null), null);
		if (up && yoffset < 32) {
			yoffset++;
		} else if (up && yoffset >= 32) {
			yoffset--;
			up = false;
		} else if (!up && yoffset > -32) {
			yoffset--;
		} else if (!up && yoffset <= -32) {
			yoffset++;
			up = true;
		}
	}