Downloads containing ab25btl53.j2as

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

File preview

const bool MLLESetupSuccessful = MLLE::Setup(); ///@MLLE-Generated
#include "MLLE-Include-1.6.asc" ///@MLLE-Generated
#pragma require "ab25btl53-MLLE-Data-2.j2l" ///@MLLE-Generated
#pragma require "ab25btl53-MLLE-Data-1.j2l" ///@MLLE-Generated
#pragma require "ab25btl53.j2l" ///@MLLE-Generated
///@SaveAndRunArgs -server -battle ///@MLLE-Generated
#include "Spaceship v1-01.asc" //make sure to include this in your level script

void onLevelLoad() {
	Spaceship::handleOnLevelLoad();
	Spaceship::handleAnimationWork();
	
	Spaceship::assignHealthPickup(OBJECT::CARROT);
	Spaceship::assignMegaHealthPickup(OBJECT::FULLENERGY);
	Spaceship::assignShieldPickup(OBJECT::PLASMASHIELD);
	Spaceship::assignMegaShieldPickup(OBJECT::WATERSHIELD);
	Spaceship::assignPowerOrb(OBJECT::FIRESHIELD);
	
	//or you can use
	//Spaceship::assignPickupDefaults(); 
	//for the default assignments, which are to set the Health Pickups to replace the Carrot, Mega Health Pickups to replace the Full Energy, Shield Pickups to replace PUs (except Seeker), Mega Shield Pickups to replace the Seeker PU, and Power Orbs to replace Shields
}

void onLevelBegin() {
	MLLE::SpawnOffgrids(); //level specific, not required
	Spaceship::handleOnLevelBegin();
}

void onPlayer(jjPLAYER@ play) {
	Spaceship::handleOnPlayer(play);
	
	jjEnforceLighting = (jjColorDepth == 8 && !jjLowDetail)? LIGHT::COMPLETE : LIGHT::OPTIONAL; //level specific, not required
	play.lighting = (jjColorDepth == 8 && !jjLowDetail)? 110:100; //level specific, not required
}

void onPlayerInput(jjPLAYER@ play) {
	Spaceship::handleOnPlayerInput(play);
}

void onMain() {
	Spaceship::handleOnMain();
}

void onReceive(jjSTREAM &in packet, int clientID) {
	Spaceship::handleOnReceive(packet, clientID);
}

bool onDrawAmmo(jjPLAYER@ play, jjCANVAS@ canvas) {
	Spaceship::handleOnDrawAmmo(play, canvas);
	
	return Spaceship::handleOnDrawAmmo(play, canvas);
}

bool onDrawHealth(jjPLAYER@ play, jjCANVAS@ canvas) {
	Spaceship::handleOnDrawHealth(play, canvas);
	
	return Spaceship::handleOnDrawHealth(play, canvas);
}

void onDrawLayer3(jjPLAYER@ play, jjCANVAS@ canvas) {
	Spaceship::handleOnDrawLayer3(play, canvas);
}

void onLevelReload() {
	MLLE::SpawnOffgridsLocal(); //level specific, not required
}