Downloads containing xlmtapIIctf03.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 20 Levels Jazz2Online Multiple N/A Download file
JJ2+ Only: Total Annihilation II:...Featured Download Loon Multiple 9.3 Download file

File preview

  1. void onPlayer(jjPLAYER@ play) {
  2.         if (play.fly == FLIGHT::FLYCARROT && play.timerState == TIMER::STOPPED) play.timerStart(5*70);
  3.         if (play.fly == FLIGHT::NONE) play.timerStop();
  4.         if (play.timerState == TIMER::STARTED && play.timerTime <= 3*70 && play.timerTime > 0 && play.timerTime % 70 == 0) jjSamplePriority(SOUND::COMMON_NOCOIN);
  5. }
  6.  
  7. void onPlayerTimerEnd(jjPLAYER@ play) { play.fly = FLIGHT::NONE; }
  8.  
  9. bool onDrawPlayerTimer(jjPLAYER@ play, jjCANVAS@ canvas) {
  10.         if (play.fly == FLIGHT::FLYCARROT) {
  11.                 canvas.drawString(
  12.                         jjSubscreenWidth - 73,
  13.                         jjSubscreenHeight - 284,
  14.                         "" + (play.timerTime + 70) / 70,
  15.                         STRING::LARGE,
  16.                         STRING::PALSHIFT,
  17.                         play.timerTime > 3*70?
  18.                                 0 :
  19.                                 jjGameTicks % 28 > 14?
  20.                                         -40 :
  21.                                         -24
  22.                 );
  23.                
  24.                 canvas.drawSprite(
  25.                         jjSubscreenWidth - 90,
  26.                         jjSubscreenHeight - 270,
  27.                         ANIM::PICKUPS,
  28.                         40,
  29.                         jjGameTicks / 10 % 8
  30.                 );
  31.         }
  32.         return true;
  33. }
  34.  
  35. void onLevelBegin() {
  36. // jjWeapons[WEAPON::GUN8].spread = SPREAD::PEPPERSPRAY;
  37. // jjWeapons[WEAPON::GUN8].gradualAim = true;
  38.  
  39. }
  40.  
  41. void onLevelLoad() {
  42.         jjUseLayer8Speeds = true;
  43.        
  44.         jjLayers[6].spriteMode =
  45.         jjLayers[7].spriteMode = SPRITE::BRIGHTNESS;
  46.  
  47.         jjLayers[6].spriteParam =
  48.         jjLayers[7].spriteParam = 60;
  49.        
  50. //      jjTexturedBGFadePositionY = 0.4;
  51. //      jjTexturedBGFadePositionX = 0.1;
  52.  
  53.         jjSetWaterLevel(32*96.5, true);
  54.         jjWaterLayer = 9;
  55.         jjWaterInteraction = WATERINTERACTION::SWIM;
  56.         jjWaterChangeSpeed = 0;
  57.  
  58.          jjPIXELMAP water(648);
  59.         water.save(572, true);
  60.         jjTileType[572] = 1;
  61. }