Downloads containing ab21btl07.j2as

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

File preview

  1. #include "MLLE-Include-1.4.asc"
  2. const bool MLLESetupSuccessful = MLLE::Setup();
  3. #pragma require "ab21btl07.j2l"
  4. #pragma require "JJ1-Fanolint-v1.2.j2t"
  5. #pragma require "WTFBorealis.j2t"
  6. #pragma require "dd02.j2t"
  7. #pragma require "JJ1 DiamondusNight -NOKA.j2t"
  8. #pragma require "CrysilisV.j2t"
  9. #pragma require "JJ1 Industrius 2005.j2t"
  10.  
  11. /*******************************
  12. A 2018 Mystic Legends Release!
  13. http://www.mysticlegends.org
  14. /******************************/
  15.  
  16. void onLevelLoad() {
  17.  
  18.         jjLAYER@ morestars = jjLayers[1];
  19.         const array<uint8> tints = {16, 24, 48, 80, 88};
  20.         array<jjLAYER@> layerOrder = jjLayerOrderGet();
  21.         for (uint i = 0; i < tints.length; ++i) {
  22.                 morestars.spriteMode = SPRITE::TRANSLUCENTSINGLEHUE;
  23.                 morestars.spriteParam = tints[i];
  24.                 morestars.xAutoSpeed += 1.5;
  25.                 morestars.yAutoSpeed -= 0.5;
  26.                 layerOrder.insertAt(layerOrder.length - 7, @morestars);
  27.                 @morestars = jjLAYER(morestars);
  28.                 morestars.yOffset += 44;
  29.                 morestars.xOffset = int(jjRandom() & 511);
  30.         }
  31.         jjLayerOrderSet(layerOrder);
  32.  
  33.         jjTexturedBGTexture = TEXTURE::BLADE;
  34.         jjDelayGeneratedCrateOrigins = true;
  35.        
  36.         jjAnimations[jjAnimSets[ANIM::BRIDGE].firstAnim + 5].frameCount = 2;
  37.        
  38.     jjANIMFRAME@ frame;    
  39.     @frame = jjAnimFrames[jjAnimations[jjAnimSets[ANIM::BRIDGE].firstAnim + 5].firstFrame];
  40.         jjPIXELMAP(5, 5, 24, 28, 4).save(frame);
  41.     @frame = jjAnimFrames[jjAnimations[jjAnimSets[ANIM::BRIDGE].firstAnim + 5].firstFrame + 1];
  42.         jjPIXELMAP(37, 5, 24, 28, 4).save(frame);
  43.        
  44.         jjANIMATION@ anim = jjAnimations[jjObjectPresets[OBJECT::APPLE].curAnim];
  45.         jjANIMFRAME@ gemframe = jjAnimFrames[anim.firstFrame];
  46.         jjPIXELMAP(37, 5, 24, 28, 4).save(gemframe);
  47.        
  48.         //frame.hotSpotX = -frame.width/2;
  49.         //frame.hotSpotY = -frame.height;
  50.        
  51.         jjWeapons[WEAPON::GUN8].spread = SPREAD::NORMAL;
  52.         jjObjectPresets[OBJECT::FIREBALLBULLETPU].var[6] = 8 + 16;
  53.        
  54.         jjWeapons[WEAPON::TNT].maximum = 1;
  55.        
  56.         jjObjectPresets[OBJECT::THING].behavior = raggot;
  57.         jjObjectPresets[OBJECT::FRIES].behavior = purplejazz;
  58.         jjObjectPresets[OBJECT::CHIPS].behavior = cooba;
  59.        
  60.         jjObjectPresets[OBJECT::GREENSPRING].ySpeed -= 1.5f;
  61.        
  62.         jjObjectPresets[OBJECT::LASERSHIELD].direction = SPRITE::FLIPH;
  63. }
  64.  
  65. void raggot(jjOBJ@ obj) {
  66.         if (obj.state == STATE::START) {
  67.                 jjPlayers[29].furSet(32, 88, 32, 40);
  68.         }
  69.         obj.behave(BEHAVIOR::BIGOBJECT, false);
  70.         jjDrawSprite(obj.xPos, obj.yPos - 12, ANIM::SPAZ, jjIsTSF ? 33 : 36, 6, 0, SPRITE::PLAYER, 29);
  71.         jjDrawString(obj.xPos - 24, obj.yPos - 36, "0rgcx");
  72. }
  73.  
  74. void purplejazz(jjOBJ@ obj) {
  75.         if (obj.state == STATE::START) {
  76.                 jjPlayers[30].furSet(88, 32, 16, 16);
  77.         }
  78.         obj.behave(BEHAVIOR::BIGOBJECT, false);
  79.         jjDrawSprite(obj.xPos + 16, obj.yPos - 8, ANIM::JAZZ, jjIsTSF ? 30 : 33, 10, SPRITE::FLIPH, SPRITE::PLAYER, 30);
  80.         jjDrawString(obj.xPos - 32, obj.yPos - 36, "0PurpleJazz");
  81. }
  82.  
  83. void cooba(jjOBJ@ obj) {
  84.         if (obj.state == STATE::START) {
  85.                 jjPlayers[31].furSet(176, 88, 64, 0);
  86.         }
  87.         obj.behave(BEHAVIOR::BIGOBJECT, false);
  88.         jjDrawSprite(obj.xPos + 16, obj.yPos - 24, ANIM::SPAZ, jjIsTSF ? 48 : 48, 0, SPRITE::FLIPHV, SPRITE::PLAYER, 31);
  89.         jjDrawString(obj.xPos - 32, obj.yPos - 48, "0cooba[si]");
  90. }
  91.  
  92. const int MAXSHIELDTIME = 1049;
  93.  
  94. void onPlayer(jjPLAYER@ play) {
  95.         jjTriggers[1] = true;
  96.        
  97.         if (play.shieldTime > MAXSHIELDTIME) {
  98.                 play.shieldTime = MAXSHIELDTIME;
  99.         }
  100.        
  101.         //Warp ID 999 is reserved for the /ready command.
  102.         if (play.warpID == 999) {
  103.                 play.ammo[WEAPON::TNT] = 0;
  104.         }
  105. }
  106.  
  107. void onDrawLayer3(jjPLAYER@ player, jjCANVAS@ canvas) {
  108.         canvas.drawTile(32*32 - 8, 56*32 + 4, 298);
  109.  
  110.         canvas.drawTile(17*32 + 16, 36*32 + 16, 299);
  111.         canvas.drawTile(18*32 + 16, 36*32 + 16, 309);
  112.         canvas.drawTile(17*32 + 16, 37*32 + 16, 309);
  113.         canvas.drawTile(18*32 + 16, 37*32 + 16, 299);
  114.        
  115.         canvas.drawTile(63*32 + 16, 0*32 + 16, 309);
  116.         canvas.drawTile(64*32 + 16, 0*32 + 16, 299);
  117.         canvas.drawTile(63*32 + 16, 1*32 + 16, 299);
  118.         canvas.drawTile(64*32 + 16, 1*32 + 16, 309);
  119.        
  120.         canvas.drawTile(63*32 + 16, 6*32 + 16, 299);
  121.         canvas.drawTile(64*32 + 16, 6*32 + 16, 309);
  122.         canvas.drawTile(63*32 + 16, 7*32 + 16, 309);
  123.         canvas.drawTile(64*32 + 16, 7*32 + 16, 299);
  124.        
  125.         canvas.drawTile(69*32 + 16, 6*32 + 16, 309);
  126.         canvas.drawTile(70*32 + 16, 6*32 + 16, 299);
  127.         canvas.drawTile(69*32 + 16, 7*32 + 16, 299);
  128.         canvas.drawTile(70*32 + 16, 7*32 + 16, 309);
  129.        
  130.         //1st place
  131.         canvas.drawTile(70*32 + 16, 0*32 + 16, 299);
  132.         canvas.drawTile(71*32 + 16, 0*32 + 16, 299);
  133.         canvas.drawTile(70*32 + 16, 1*32 + 16, 299);
  134.         canvas.drawTile(71*32 + 16, 1*32 + 16, 299);
  135. }
  136.  
  137. void onDrawLayer4(jjPLAYER@ player, jjCANVAS@ canvas) {
  138.         canvas.drawTile(64*32 - 4, 33*32, 149);
  139.         canvas.drawTile(65*32 - 4, 33*32, 121);
  140. }