Downloads containing Fio2_c.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Find It Out (Single Player)Featured Download Superjazz Single player 9.1 Download file

File preview

const bool MLLESetupSuccessful = MLLE::Setup(); ///@MLLE-Generated
#include "MLLE-Include-1.6.asc" ///@MLLE-Generated
#pragma require "Fio2_c-MLLE-Data-1.j2l" ///@MLLE-Generated
#pragma require "Fio2_c.j2l" ///@MLLE-Generated
#include "Fio_common.asc"
#include "Fio_drawing.asc"
#include "Fio_globals.asc"

const string NEXT_LEVEL_FILENAME = "Fio2_d.j2l";

array<string> texts = {
	"|I heard someone talking in this tunnel. Is this a time to be scared or not?",
	"", // Removed as obsolete
	"|What's this? Some kind of a big jail cell or just a dead end?",
	"|||You are not cursed. You can walk through the wall.",
	"|Again that voice! But I see no one in here besides that strange floating ball. What's that big stone ahead?"
};

// Required for each level
bool onCheat(string &in cheat) {
	return fio::handleCheat(cheat, NEXT_LEVEL_FILENAME);
}

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

void onDrawLayer5(jjPLAYER@ play, jjCANVAS@ canvas) {
	canvas.drawResizedSprite(TILE * 51, TILE * 14.5, ANIM::AMMO, 10, 0, 2, 2);
}

bool onDrawLives(jjPLAYER@ play, jjCANVAS@ canvas) {
	return true;
}

void onFunction0() {
	play.lighting = LIGHTING_TWILIGHT;
	fioDraw::doShowText(0);
}

void onFunction1() {
	fioDraw::doShowText(1);
}

void onFunction2() {
	fioDraw::doShowText(2);
}

void onFunction3() {
	fioDraw::doShowText(3);
}

void onFunction4() {
	fioDraw::doShowText(4);
}

void onFunction5() {
	fio::handleLevelCycle(NEXT_LEVEL_FILENAME, true, true);
}

void onLevelLoad() {
	initializeGlobals(array<Checkpoint@> = {});
	fioDraw::initializeDrawing(texts, array<string> = {});
}

void onMain() {
	fioDraw::controlHud();
}

void onPlayerInput(jjPLAYER@ play) {
	fio::controlPlayerInput(play, false, false);
}

void onLevelReload() {
	MLLE::ReapplyPalette();
}