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