Downloads containing AM2.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 17 Levels Jazz2Online Multiple N/A 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() {
	jjObjectPresets[OBJECT::FULLENERGY].behavior = CantBeBuried;
}

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