Downloads containing xlmbushido.j2as

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

File preview

  1. #include "MLLE-Include-1.4.asc"
  2. const bool MLLESetupSuccessful = MLLE::Setup();
  3. #pragma require "xlmbushido-MLLE-Data-1.j2l"
  4. #pragma require "Diam1.j2t"
  5. #pragma require "Heaven.j2t"
  6. #pragma require "tradjap_fixed.j2t"
  7. #pragma require "tradjap.j2t"
  8. #pragma require "xlmbushido.j2l"
  9.  
  10. void onLevelLoad() {
  11.    jjObjectPresets[OBJECT::FULLENERGY].behavior = CannotBeShotDown;
  12.       jjPIXELMAP rain(32,32);
  13.       for (uint x = 0; x < rain.width; ++x) {
  14.         for (uint y = 0; y < rain.height; ++y) {
  15.           if (x == 16) { //draw in the middle of the tile, xPixel 16
  16.             if (y <= 24) rain[x,y] = 75; //if at yPixel 24 or less, use color 75
  17.             else rain[x,y] = 74; //use color 74 for yPixels 25-32
  18.           } else {
  19.             rain[x,y] = 0;
  20.           }
  21.         }
  22.       }
  23.  
  24.       jjANIMATION@ anim = jjAnimations[jjAnimSets[ANIM::COMMON].firstAnim + 2];
  25.       for (uint frameID = 0; frameID < anim.frameCount; ++frameID) {
  26.         jjANIMFRAME@ frame = jjAnimFrames[anim.firstFrame + frameID];
  27.         rain.save(frame);
  28.         frame.hotSpotX = -frame.width/2;
  29.         frame.hotSpotY = -frame.height;
  30.       }
  31.  
  32. }
  33.  
  34. void CannotBeShotDown(jjOBJ@ obj) {
  35.     obj.behave(BEHAVIOR::PICKUP);
  36.     if (obj.state == STATE::FLOATFALL)
  37.         obj.state = STATE::FLOAT;
  38. }