Downloads containing AM.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Ancient MuseumFeatured Download FireSworD Capture the flag 8.7 Download file
JJ2+ Only: Ancient MuseumFeatured Download FireSworD Capture the flag 8.7 Download file

File preview

/* Carrots cannot be buried in the ground with toaster 1.0, by PurpleJazz 
   http://www.jazz2online.com/snippets/100/carrots-cannot-be-buried-in-the-ground-with-toaster/ */

void onLevelLoad() {
jjUseLayer8Speeds = true;

	jjObjectPresets[OBJECT::FULLENERGY].behavior = CantBeBuried;
}

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