Downloads containing ab19btl18.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 19 Levels Jazz2Online Multiple N/A Download file

File preview

jjPAL pal;
int hue, sat, light;

void onLevelLoad() {
	jjTexturedBGTexture = TEXTURE::MEDIVO;
	jjUseLayer8Speeds = true;
	jjTexturedBGFadePositionY = 0.33;
	jjSetFadeColors(165,115,85);
	
	pal.load("CrysilisV3.j2t");
	for (int n = 96; n <= 254; n++) {
		hue = jjPalette.color[n].getHue();
		sat = jjPalette.color[n].getSat();
		light = jjPalette.color[n].getLight();
		
		pal.color[n].setHSL(hue, sat / 2, light);
	}
	pal.apply();
	
	jjLayers[7].yOffset = -320;
	jjLayers[7].xSpeed = 0.3;
	jjLayers[7].ySpeed = 0.25;
	auto proposedLayerOrder = jjLayerOrderGet();
	for (int i = 2; i < 8; i++) {
		jjLAYER@ layer = jjLAYER(jjLayers[7]);
		layer.xSpeed = (0.3/i)*1.5; 
		layer.ySpeed = (0.25/i)*1.5;
		layer.xOffset = jjRandom() & 127;
		layer.yOffset = jjLayers[7].yOffset + i*48;
		proposedLayerOrder.insertAt(proposedLayerOrder.length - 1, layer);
	}
	jjLayerOrderSet(proposedLayerOrder);
	
	jjWeapons[WEAPON::TOASTER].multiplier = 13;
}