Downloads containing xlmbushido.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: BushidoFeatured Download Laro B. Capture the flag 8.1 Download file

File preview

#include "MLLE-Include-1.4.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#pragma require "xlmbushido-MLLE-Data-1.j2l"
#pragma require "Diam1.j2t"
#pragma require "Heaven.j2t"
#pragma require "tradjap_fixed.j2t"
#pragma require "tradjap.j2t"
#pragma require "xlmbushido.j2l"

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;
}