Downloads containing xlmbio.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: BioluminescenceFeatured Download Dragusela Capture the flag 8.5 Download file

File preview

const bool MLLESetupSuccessful = MLLE::Setup(array<MLLEWeaponApply@> = {null, null, BubbleGun::Weapon(), null, null, null, null, null, null}); ///@MLLE-Generated
#include "MLLE-Include-1.6w.asc" ///@MLLE-Generated
#pragma require "xlmbio-MLLE-Data-3.j2l" ///@MLLE-Generated
#pragma require "xlmbio-MLLE-Data-2.j2l" ///@MLLE-Generated
#pragma require "xlmbio-MLLE-Data-1.j2l" ///@MLLE-Generated
#pragma require "Lomat.j2t" ///@MLLE-Generated
#pragma require "DamnMushroom.j2t" ///@MLLE-Generated
#pragma require "beachfreeport.j2t" ///@MLLE-Generated
#pragma require "xlmbio.j2l" ///@MLLE-Generated
#include "BubbleGun.asc" ///@MLLE-Generated
#pragma require "BubbleGun.asc" ///@MLLE-Generated
///@SaveAndRunArgs -server -capture ///@MLLE-Generated

#pragma require "SpringMushroom.j2a"
#pragma require "S3K_87.wav"

void onLevelReload() {
	MLLE::SpawnOffgridsLocal();
	MLLE::ReapplyPalette();
}

void onLevelLoad() {
	jjUseLayer8Speeds = true;
	for (int i = 1; i <= 9; i++) {
		jjWeapons[i].allowed = true;
		if (i == 2 || i == 5 || i == 6 || i == 8) jjWeapons[i].allowedPowerup = true;
	}
	
	jjAnimSets[ANIM::CUSTOM[0]].load(0, "SpringMushroom.j2a");
	for (int i = 0; i < 8; i++) {
		jjAnimations[jjAnimSets[ANIM::SPRING] + i] = jjAnimations[jjAnimSets[ANIM::CUSTOM[0]] + i];
	}
	
	jjObjectPresets[OBJECT::REDSPRING].behavior =
	jjObjectPresets[OBJECT::GREENSPRING].behavior =
	jjObjectPresets[OBJECT::BLUESPRING].behavior =
	jjObjectPresets[OBJECT::FROZENSPRING].behavior = SpringMushroom();
}

class SpringMushroom : jjBEHAVIORINTERFACE {
	void onBehave(jjOBJ@ obj) {
		obj.behave(BEHAVIOR::SPRING);
		if (obj.state == STATE::SPRING && !jjLowDetail) {
			jjPARTICLE@ spores = jjAddParticle(PARTICLE::FIRE);
			if (spores !is null) {
				spores.xPos = int(obj.xPos - 14) + (jjRandom()%14)*2;
				spores.yPos = int(obj.yPos - 14) + jjRandom()%14;
				if (jjRandom()%2 > 0)
					spores.ySpeed = -1;
				else spores.ySpeed = -0.6;
				spores.fire.color = 64;
				spores.fire.colorStop = 72;
			}
		}
	}
}

void onLevelBegin() {
	MLLE::SpawnOffgrids();
	jjSampleLoad(SOUND::COMMON_SPRING1, "S3K_87.wav");
}

bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
	return MLLE::WeaponHook.drawAmmo(player, canvas);
}