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

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