Downloads containing xlmhypviol.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Hyperviolence!Featured Download PurpleJazz Battle 9 Download file

File preview

#pragma require "xlmhypviolextra.j2l"

void onLevelLoad() {
	jjTexturedBGTexture = TEXTURE::DESOLATION;
	jjPalette.gradient(250,0,0, 15,0,0, 176, 32);
	jjUseLayer8Speeds = true;

	jjObjectPresets[OBJECT::CARROT].behavior = 
	jjObjectPresets[OBJECT::BOUNCERAMMO3].behavior = 
	jjObjectPresets[OBJECT::SEEKERAMMO3].behavior =
	jjObjectPresets[OBJECT::RFAMMO3].behavior =
	jjObjectPresets[OBJECT::TOASTERAMMO3].behavior = 
	jjObjectPresets[OBJECT::GUN8AMMO3].behavior = CannotBeBuried();
	
	jjWeapons[WEAPON::TOASTER].multiplier = 24;
	
	array<jjLAYER@> extraLayers = jjLayersFromLevel("xlmhypviolextra.j2l", array<uint> = {5,6,7,8}, 0);
	jjLayerOrderSet(array<jjLAYER@> = {jjLayers[1], jjLayers[2], jjLayers[3], jjLayers[4], jjLayers[5], jjLayers[6], extraLayers[0], jjLayers[7], extraLayers[1], extraLayers[2], extraLayers[3], jjLayers[8]});
}

class CannotBeBuried : jjBEHAVIORINTERFACE {
	void onBehave(jjOBJ@ obj) {
		obj.behave(BEHAVIOR::PICKUP);
		if (jjMaskedPixel(int(obj.xPos), int(obj.yPos) + 8)) {
			obj.state = STATE::FLOAT;
		}
	}
}

void onFunction0(jjPLAYER@ play) {
	play.showText("@@@@Hyperviolence!@Created by PurpleJazz of XLM (2015-2017)@Tileset by Skulg@np: Sonic Mayhem - Quad Machine [3:35]");
}