Downloads containing xlmriparius.j2as

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

File preview

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