Downloads containing ab24btl02.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 24 Battle Jazz2Online Battle N/A Download file

File preview

const bool MLLESetupSuccessful = MLLE::Setup(array<MLLEWeaponApply@> = {null, ArcaneWeapons::MeteorGun::Weapon(), null, null, null, null, null, null, null}); ///@MLLE-Generated
#include "MLLE-Include-1.5w.asc" ///@MLLE-Generated
#pragma require "ab24btl02-MLLE-Data-1.j2l" ///@MLLE-Generated
#pragma require "ab24btl02.j2l" ///@MLLE-Generated
#include "ArcaneWeapon2.asc" ///@MLLE-Generated
#pragma require "ArcaneWeapon2.asc" ///@MLLE-Generated

void onMain() {
	MLLE::WeaponHook.processMain();
}

void onDrawLayer3(jjPLAYER@ play, jjCANVAS@ canvas) {
	drawEyes(canvas,5*32 + 18,9*32 + 23,int(play.xPos),int(play.yPos),3,2);
	drawEyes(canvas,5*32 + 12,9*32 + 24,int(play.xPos),int(play.yPos),4,3);
	drawEyes(canvas,2*32 + 12,8*32 + 23,int(play.xPos),int(play.yPos),3,2);
	drawEyes(canvas,2*32 + 18,8*32 + 24,int(play.xPos),int(play.yPos),4,3);
}

bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
	return MLLE::WeaponHook.drawAmmo(player, canvas);
}
const float PI = 3.1415927f;
void drawEyes(jjCANVAS@ canvas,int x,int y,int targetX, int targetY,int maxX,int maxY) {
	int angle = int(atan2(targetY - y, targetX - x) * (512 / PI));
	canvas.drawRectangle(int(x + (jjCos(angle) * maxX)),int(y + (jjSin(angle) * maxY)),2,2,0);
}