Downloads containing TWTW.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Teutoburger Wald ThunderWalker Custom / Concept N/A Download file

File preview

#include "MLLE-Include-1.3.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#pragma require "SwampsD.j2t"
#pragma require "ETs Planet2 v3.j2t"
#pragma require "IC - Jungrock2.j2t"
#pragma require "TWTW-MLLE-Data-1.j2l"
void onLevelLoad() {
	const int oldTileCount = jjTileCount; 
	array<uint8> remapping(256, 0);
	jjPAL fooPalette;
	ICJungrock2Palette.load("ETs Planet2 v3.j2t");
	for (int i = 1; i < 256; ++i)
	remapping[i] = jjPalette.findNearestColor(ICJungrock2Palette.color[i]);
		"IC - Jungrock2.j2t"; 
		0;
		600;
		pillarColorMapping //an array<uint8>(256) that maps colors in the source tileset to colors in the destination tileset, here only working on a single 16-color gradient because that's all that is used in those particular two layers
	;
	array<jjLAYER@> TWTWCanopyLayers = jjLayersFromLevel( 
		"TWTWCanopy.j2l", 
		array<uint> = {2,3,4}, 
		oldTileCount - 0 
	);
	const int oldTileCount = jjTileCount;
	array<uint8> remapping(256, 0),
	jjPAL fooPalette;
	SwampsNPalette.load("SwampsN.j2t");
	for (int i = 1; i < 256; ++i) 
  	remapping[i] = jjPalette.findNearestColor(SwampsNPalette.color[i]);
	jjTilesFromTileset("SwampsN.j2t",remapping);
		"SwampsN.j2t"; 
		0;
		860;
		pillarColorMapping 
	;
	array<jjLAYER@> TWTWSwampLayer = jjLayersFromLevel(
		"TWTWSwamp.j2l", 
		array<uint> = {3,4,5,6},
		oldTileCount - 0 
	);
	const int oldTileCount = jjTileCount; 
	array<uint8> remapping(256, 0);
	jjPAL fooPalette;
	ETsPlanet2v3Palette.load("ETs Planet2 v3.j2t");
	for (int i = 1; i < 256; ++i)
	remapping[i] = jjPalette.findNearestColor(ETsPlanetv3Palette.color[i]);
	jjTilesFromTileset("ETs Planet2 v3.j2t",remapping);
		"ETs Planet2 v3.j2t";
		0;
		130; 
		pillarColorMapping 
	;
	array<jjLAYER@> TWTWHangmanLayer = jjLayersFromLevel(
		"TWTWHangman.j2l", 
		array<uint> = {4}, 
		oldTileCount - 0 
	);
	jjLayerOrderSet(array<jjLAYER@> = {TWTW[1], TWTW[2], TWTWCanopyLayers[0], TWTWCanopyLayers[1], TWTWCanopyLayers[2], TWTW[3], TWTW[4], TWTW[5], TWTWHangmanLayer[0], TWTWSwampLayer[0], TWTWSwampLayer[1], TWTWSwampLayer[2], TWTWSwampLayer[3], TWTW[6], TWTW[7], TWTW[8]}); 
}