Downloads containing xlmacademyduel.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Academy Superjazz Battle N/A Download file

File preview

#include "MLLE-Include-1.4.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#pragma require "Hocus013D.j2t"
#pragma require "Castle1.j2t"
#pragma require "diamondus frozen.j2t"
#pragma require "Medivo2.j2t"
#pragma require "JJ1Deserto.j2t"
#pragma require "xlmacademyduel.j2l"
#pragma require "academy_engine.asc"
#include "academy_engine.asc"

/* Academy, written by Superjazz of XLM */

bool onDrawAmmo(jjPLAYER@ play, jjCANVAS@ canvas) {
	return acEngine::doDrawAmmo(play, canvas);
}

void onDrawLayer4(jjPLAYER@ play, jjCANVAS@ canvas) {
	acEngine::doDrawLayer4(play, canvas);
}

void onGameStop() {
	acEngine::doGameStop();
}

void onLevelBegin() {
	if (jjLocalPlayerCount > 1) jjAlert("WARNING: This level is not compatible in split screen mode!");
	flipVerticalTiles();
	acEngine::initializeLevel();
}

void onLevelLoad() {
	acEngine::initialize(false, true);
}

void onPlayer(jjPLAYER@ play) {
	acEngine::controlPlayer(play);
}

void onMain() {
	acEngine::controlMain();
}

void onChat(int clientID, string &in received, CHAT::Type type) {
	acEngine::controlChat(clientID, received, type);
}

void onPlayerInput(jjPLAYER@ play) {
	acEngine::controlPlayerInput(play);
}

void onReceive(jjSTREAM &in packet, int clientID) {
	acEngine::doReceive(packet, clientID);
}

void flipVerticalTiles() {
	for (int x = 0; x < jjLayerWidth[4]; x++) {
		for (int y = 0; y < jjLayerHeight[4]; y++) {
		  uint16 tile = jjTileGet(4, x, y);
			   
		  if (jjEventGet(x, y) == VERTICAL_FLIP_EVENT_ID) jjTileSet(4, x, y, tile ^ TILE::VFLIPPED);
		}
	}
}