Downloads containing Jung2.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: KangarooFeatured Download Violet CLM Single player 9.1 Download file

File preview

#include "kangaroo.asc"
#pragma require "kangaroo.asc"

const OBJECT::Object JillEventID = OBJECT::BILSY; //could be anything; kangaroo.asc will overwrite the jjObjectPresets entry all but completely

void onLevelLoad() {
	//make some basic changes to the end of the level area
	for (uint y = 53; y <= 62; ++y) {
		jjEventSet(241, y, AREA::LIMITXSCROLL);
		jjEventSet(250, y, AREA::ACTIVATEBOSS);
	}
	jjEventSet(240, 60, JillEventID);
	
	//call a couple Kangaroo functions
	Kangaroo::MakeEventJoey(OBJECT::MONKEY); //default parameters
	Kangaroo::MakeEventJoey(OBJECT::STANDMONKEY, 0, 5, 5, 12, 5, 256); //custom parameters
	Kangaroo::MakeEventJill(
		JillEventID,
		(jjDifficulty > 1) ? uint8(OBJECT::MONKEY) : 0, //Jill spawns Joeys only on Hard/Turbo
		true //turn red when the battle is mostly over
	).deactivates = false; //note that both MakeEventJoey and MakeEventJill return the jjObjectPresets entry of the eventID passed to them
}