Downloads containing xlmtriton.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Anniversary Bash 25 Battle Jazz2Online Battle N/A Download file
JJ2+ Only: Triton ArmoryFeatured Download PurpleJazz Battle 8.3 Download file

File preview

void onLevelLoad() {
	jjUseLayer8Speeds = true;

	for (int i = 1; i < 255; i++) {
		if (jjObjectPresets[i].playerHandling == HANDLING::PICKUP) {
			jjObjectPresets[i].behavior = CannotBeBuried;
		}
	}
}

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

void onPlayer(jjPLAYER@ play) {
	if (play.shieldTime > 1050) play.shieldTime = 1050;
}