public void tick(InputHandler input)
	{
		scroll += speed;
		scroll2 += speed;

		scroll %= height;
		scroll2 %= 16;

		distance += speed;

		if (speed < MAX_SPEED)
		{
			speed = (distance / 8 / 1000.0f) + 1;
			speed = Math.min(speed, MAX_SPEED);
		}

		for (int i = 0; i < entities.length; i++)
		{
			Entity e = entities[i];

			if (e != null)
			{
				if (e.getY() + e.getHeight() < 0)
				{
					removeEntity(e);
				}

				e.tick(input, this);
			}
		}

		if (random.nextInt(64) < 2)
		{
			spawnEntity(new RenderEntity(random.nextInt(width - 8), height + 1, random.nextInt(6)));
		}

		player.tick(input, this);
	}