for (int i = 0; i < 2; i++)
{
int scrollSpeed = 4 >> i;
int w = ((level.width * 16) - 320) / scrollSpeed + 320;
int h = ((level.height * 16) - 240) / scrollSpeed + 240;
Level bgLevel = BgLevelGenerator.createLevel(w / 32 + 1, h / 32 + 1, i == 0, levelType);
bgLayer[i] = new BgRenderer(bgLevel, graphicsConfiguration, 320, 240, scrollSpeed);
}
mario = new Mario(this);
sprites.add(mario);
startTime = 1;