Downloads containing Jellybattle4.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: ThermaeFeatured Download Jelly Jam Battle 8.5 Download file

File preview

#include "MLLE-Include-1.4.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#include "limitedoxygen.asc"
#pragma require "Carrot1.j2t"
#pragma require "Jellybattle4-MLLE-Data-1.j2l"
#pragma require "Jellybattle4.j2l"

void onLevelLoad() {


	jjSetWaterGradient(10,10,80, 10,10,80);
	jjTexturedBGTexture = TEXTURE::PSYCH;
	jjTexturedBGFadePositionY = 0.33;
	jjUseLayer8Speeds = true;

	water::maxOxygen = 2300;

}

void onPlayer(jjPLAYER@ play)
 {

	water::limitedOxygen(play);


}

bool onDrawHealth(jjPLAYER@ play, jjCANVAS@ canvas) {
	water::drawOxygenTimer(play, canvas);
	return false;	
}

void onMain() {
	for (int i = 1; i < jjObjectCount; i++) { 
	   jjOBJ@ o = jjObjects[i];
	   if (o.isActive) {
	       if (o.behavior == BEHAVIOR::PICKUP && o.state == STATE::FLOATFALL) {
		     o.state = STATE::FLOAT;
	        }
	   }
	}
}