Downloads containing battle1s2.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Anniversary Bash 25 Battle Jazz2Online Battle N/A Download file
TSF with JJ2+ Only: Anniversary Bash 16 Levels Jazz2Online Multiple N/A Download file
JJ2+ Only: (battle1)/2 minmay Battle 7 Download file

File preview

array<int> localXPos = {-1,-1,-1,-1};
array<int> localYPos = {-1,-1,-1,-1};

void onPlayer() {
	if (localXPos[p.localPlayerID] == -1) {
		localXPos[p.localPlayerID] = p.xPos;
		localYPos[p.localPlayerID] = p.yPos;
	} else {
		if (p.warpID == 0) p.offsetPosition(-(p.xPos - localXPos[p.localPlayerID]) / 2,-(p.yPos - localYPos[p.localPlayerID]) / 2);
		localXPos[p.localPlayerID] = p.xPos;
		localYPos[p.localPlayerID] = p.yPos;
	}
}

void onLevelLoad() {
	jjLayerHasTiles[4] = false;
}