Downloads containing ab23ctf19.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 23 levels Jazz2Online Multiple N/A Download file

File preview

  1. const bool MLLESetupSuccessful = MLLE::Setup(array<MLLEWeaponApply@> = {null, null, null, null, ArcaneWeapons::FusionCannon::Weapon(), null, null, WeaponVMega::Voranj::Weapon(), null}); ///@MLLE-Generated
  2. #include "MLLE-Include-1.5w.asc" ///@MLLE-Generated
  3. #pragma require "vdom.j2t" ///@MLLE-Generated
  4. #pragma require "Labrat1.j2t" ///@MLLE-Generated
  5. #pragma require "ab23ctf19.j2l" ///@MLLE-Generated
  6. #include "WeaponVMega8.asc" ///@MLLE-Generated
  7. #pragma require "WeaponVMega8.asc" ///@MLLE-Generated
  8. #include "ArcaneWeapon9.asc" ///@MLLE-Generated
  9. #pragma require "ArcaneWeapon9.asc" ///@MLLE-Generated
  10.  
  11. ///@saveandrunargs -capture -server
  12.  
  13.  
  14. void onLevelLoad() {
  15.         if (jjObjectPresets[OBJECT::SEEKERPOWERUP].behavior == BEHAVIOR::MONITOR)
  16.                 jjObjectPresets[OBJECT::SEEKERPOWERUP].behavior = NoFallMonitor;
  17.                        
  18.         jjObjectPresets[OBJECT::BLUESPRING].ySpeed -= 4.9;
  19.         jjANIMATION@ blueSpring = jjAnimations[jjObjectPresets[OBJECT::BLUESPRING].curAnim];
  20.         for (uint i = 0; i < blueSpring.frameCount; ++i) {
  21.                 jjANIMFRAME@ frame = jjAnimFrames[blueSpring + i];
  22.                 jjPIXELMAP image(frame);
  23.                 for (uint x = 0; x < image.width; ++x)
  24.                         for (uint y = 0; y < image.height; ++y)
  25.                                 if (image[x,y] & ~7 == 32)
  26.                                         image[x,y] += 40;
  27.                 image.save(frame);
  28.         }
  29.        
  30.         jjObjectPresets[OBJECT::FRUITPLATFORM].bulletHandling = HANDLING::IGNOREBULLET;
  31. }
  32.  
  33. void NoFallMonitor(jjOBJ@ obj) {
  34.         obj.direction = SPRITE::FLIPV;
  35.         obj.behavior = BEHAVIOR::MONITOR;
  36.         obj.behave();
  37.         obj.direction = (jjRandom() & 1) == 1 ? SPRITE::FLIPV : SPRITE::FLIPHV;
  38. }
  39.  
  40. void onLevelReload() { MLLE::Palette.apply(); }
  41. bool onDrawAmmo(jjPLAYER@ player, jjCANVAS@ canvas) {
  42.         return MLLE::WeaponHook.drawAmmo(player, canvas);
  43. }
  44.  
  45. array<int> fastCustomSpringSpeeds(jjLocalPlayerCount, 0);
  46. void onPlayer(jjPLAYER@ play) {
  47.         if (play.ySpeed < -32.f) {
  48.                 fastCustomSpringSpeeds[play.localPlayerID] = int(ceil((play.ySpeed + 32.f) / -0.125f));
  49.         } else if (fastCustomSpringSpeeds[play.localPlayerID] != 0) {
  50.                 if (play.ySpeed < -31.f) {
  51.                                 fastCustomSpringSpeeds[play.localPlayerID]--;
  52.                                 play.ySpeed = -32.f;
  53.                 } else {
  54.                                 fastCustomSpringSpeeds[play.localPlayerID] = 0;
  55.                 }
  56.         }
  57. }