Downloads containing OneFroggyEveningCTF.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Anniversary Bash 25 CTF Jazz2Online Capture the flag N/A Download file
JJ2+ Only: One Froggy EveningFeatured Download Violet CLM Custom / Concept 9 Download file

File preview

#include "OneFroggyEvening.j2as"
#pragma require "OneFroggyEvening.j2as"

void onLevelBegin() {
	jjANIMATION@ eva = jjAnimations[jjAnimSets[ANIM::EVA] + 1];
	jjAnimations[jjAnimSets[ANIM::FLAG] + 5] = eva; //use jazz-kissing eva at ctf bases
	for (uint i = 0; i < eva.frameCount; ++i) { //flip sprites
		jjPIXELMAP oldEva(jjAnimFrames[eva + i]);
		jjPIXELMAP newEva(oldEva.width, oldEva.height);
		for (uint x = 0; x < newEva.width; ++x)
			for (uint y = 0; y < newEva.height; ++y)
				newEva[x,y] = oldEva[newEva.width - 1 - x,y];
		newEva.save(jjAnimFrames[eva + i]);
	}
	eva.firstFrame = jjAnimations[jjAnimSets[ANIM::FONT]].firstFrame; //hide eva as drawn by original j2as
}