Downloads containing ab22ctf01.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 "ab22ctf01.j2l" ///@MLLE-Generated
  4.  
  5. void onLevelLoad() {
  6.         jjTexturedBGTexture = TEXTURE::RANEFORUSV;
  7.         jjUseLayer8Speeds = true;
  8.         jjObjectPresets[OBJECT::BOUNCERBULLET].behavior = bouncer;
  9.  
  10.          jjLayerOrderSet(array<jjLAYER@> = {jjLayers[2], jjLayers[3], jjLayers[4], jjLayers[5], jjLayers[6], jjLayers[7], jjLayers[1], jjLayers[8]});
  11. }
  12.  
  13. void onMain() {
  14.  
  15.         for (int i = 1; i < jjObjectCount; i++) {
  16.            jjOBJ@ o = jjObjects[i];
  17.            if (o.isActive) {
  18.                if (o.behavior == BEHAVIOR::PICKUP && o.state == STATE::FLOATFALL) {
  19.                      o.state = STATE::FLOAT;
  20.                 }
  21.            }
  22.         }
  23. }
  24.  
  25. void bouncer(jjOBJ@ obj) {
  26.     float xSpeed = obj.xSpeed;
  27.     float ySpeed = obj.ySpeed;
  28.     obj.behave(BEHAVIOR::BOUNCERBULLET);
  29.     if (xSpeed * obj.xSpeed < 0.f && ySpeed * obj.ySpeed < 0.f) {
  30.         if (!jjMaskedPixel(int(obj.xPos + obj.xSpeed), int(obj.yPos + ySpeed))) {
  31.             obj.var[0] = obj.var[0] - 1;
  32.             obj.ySpeed = ySpeed;
  33.             if (ySpeed > 0.f)
  34.                 obj.yPos += ySpeed;
  35.         }
  36.     }
  37. }