Downloads containing xlmmitosis.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Mitosis Jgke Capture the flag 7.5 Download file

File preview

const bool MLLESetupSuccessful = MLLE::Setup(); ///@MLLE-Generated
#include "MLLE-Include-1.5.asc" ///@MLLE-Generated
#pragma require "xlmmitosis-MLLE-Data-1.j2l" ///@MLLE-Generated
#pragma require "xlmmitosis.j2l" ///@MLLE-Generated
void onLevelLoad() {
    jjObjectPresets[OBJECT::CARROT].behavior = Carrot();
    jjObjectPresets[OBJECT::FULLENERGY].behavior = FullNRG();
}

class Carrot : jjBEHAVIORINTERFACE {
	void onBehave(jjOBJ@ obj) {
        // the left carrot tends to get stuck if shot down...
        if(obj.xPos < 720) {
            obj.xPos = 720;
        }
        obj.behave(BEHAVIOR::PICKUP);
    }
}

class FullNRG : jjBEHAVIORINTERFACE {
	void onBehave(jjOBJ@ obj) {
        // the left carrot tends to get stuck if shot down...
        obj.xPos = obj.xOrg;
        obj.behave(BEHAVIOR::PICKUP);
    }
}