Downloads containing ab22ctf03.j2as

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

File preview

const bool MLLESetupSuccessful = MLLE::Setup(); ///@MLLE-Generated
#include "MLLE-Include-1.5.asc" ///@MLLE-Generated
#pragma require "ab22ctf03-MLLE-Data-1.j2l" ///@MLLE-Generated
#pragma require "Heaven.j2t" ///@MLLE-Generated
#pragma require "tradjap.j2t" ///@MLLE-Generated
#pragma require "ab22ctf03.j2l" ///@MLLE-Generated

void onLevelLoad() {
   jjObjectPresets[OBJECT::FULLENERGY].behavior = CannotBeShotDown;
      jjPIXELMAP rain(32,32);
      for (uint x = 0; x < rain.width; ++x) {
        for (uint y = 0; y < rain.height; ++y) {
          if (x == 16) { //draw in the middle of the tile, xPixel 16
            if (y <= 24) rain[x,y] = 75; //if at yPixel 24 or less, use color 75
            else rain[x,y] = 74; //use color 74 for yPixels 25-32
          } else {
            rain[x,y] = 0;
          }
        }
      }

      jjANIMATION@ anim = jjAnimations[jjAnimSets[ANIM::COMMON].firstAnim + 2];
      for (uint frameID = 0; frameID < anim.frameCount; ++frameID) {
        jjANIMFRAME@ frame = jjAnimFrames[anim.firstFrame + frameID];
        rain.save(frame);
        frame.hotSpotX = -frame.width/2;
        frame.hotSpotY = -frame.height;
      }

}

void CannotBeShotDown(jjOBJ@ obj) {
    obj.behave(BEHAVIOR::PICKUP);
    if (obj.state == STATE::FLOATFALL)
        obj.state = STATE::FLOAT;
}