Downloads containing xlmnidavellir.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 21 Levels Jazz2Online Multiple N/A Download file
TSF with JJ2+ Only: Nidavellir Toni_ Capture the flag 7.9 Download file

File preview

#pragma require "jjnetAmmoNida.asc"
#include "jjnetAmmoNida.asc"

void onLevelLoad() {
	jjObjectPresets[OBJECT::FULLENERGY].behavior = FallThroughBridge();
        jjObjectPresets[OBJECT::CARROT].behavior = CannotBeShotDown;
        setAmmoPresets(OBJECT::TOASTERAMMO15);
        setAmmoPresets(OBJECT::BOUNCERAMMO15);
        jjObjectPresets[OBJECT::ELECTROBULLET].xSpeed *= 1.25;
        jjObjectPresets[OBJECT::ELECTROBULLETPU].xSpeed *= 1.25;
}
void CannotBeShotDown(jjOBJ@ obj) {
    obj.behave(BEHAVIOR::PICKUP);
    if (obj.state == STATE::FLOATFALL) obj.state = STATE::FLOAT;
}

class FallThroughBridge : jjBEHAVIORINTERFACE {
	void onBehave(jjOBJ@ obj) {
		obj.behave(BEHAVIOR::PICKUP);
		
		if (obj.yPos >= 57*32 && obj.yPos <= 59*32) {
			obj.yPos += 2;
		}
	}
}