Downloads containing ab21btl17.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 "ab21btl17.j2l"
  4. #pragma require "academy_engine.asc"
  5. #pragma require "Castle1.j2t"
  6. #pragma require "diamondus frozen.j2t"
  7. #pragma require "Hocus013D.j2t"
  8. #pragma require "JJ1Deserto.j2t"
  9. #pragma require "Medivo2.j2t"
  10. #include "academy_engine.asc"
  11.  
  12. /* Academy, written by Superjazz of XLM */
  13.  
  14. bool onDrawAmmo(jjPLAYER@ play, jjCANVAS@ canvas) {
  15.         return acEngine::doDrawAmmo(play, canvas);
  16. }
  17.  
  18. void onDrawLayer4(jjPLAYER@ play, jjCANVAS@ canvas) {
  19.         acEngine::doDrawLayer4(play, canvas);
  20. }
  21.  
  22. void onGameStop() {
  23.         acEngine::doGameStop();
  24. }
  25.  
  26. void onLevelBegin() {
  27.         if (jjLocalPlayerCount > 1) jjAlert("WARNING: This level is not compatible in split screen mode!");
  28.         flipVerticalTiles();
  29.         acEngine::initializeLevel();
  30. }
  31.  
  32. void onLevelLoad() {
  33.         acEngine::initialize(false);
  34. }
  35.  
  36. void onPlayer(jjPLAYER@ play) {
  37.         acEngine::controlPlayer(play);
  38. }
  39.  
  40. void onMain() {
  41.         acEngine::controlMain();
  42. }
  43.  
  44. void onChat(int clientID, string &in received, CHAT::Type type) {
  45.         acEngine::controlChat(clientID, received, type);
  46. }
  47.  
  48. void onPlayerInput(jjPLAYER@ play) {
  49.         acEngine::controlPlayerInput(play);
  50. }
  51.  
  52. void onReceive(jjSTREAM &in packet, int clientID) {
  53.         acEngine::doReceive(packet, clientID);
  54. }
  55.  
  56. void onFunction0() {
  57.         acEngine::doAsFunction(0);
  58. }
  59.  
  60. void onFunction1() {
  61.         acEngine::doAsFunction(1);
  62. }
  63.  
  64. void onFunction2() {
  65.         acEngine::doAsFunction(2);
  66. }
  67.  
  68. void onFunction3() {
  69.         acEngine::doAsFunction(3);
  70. }
  71.  
  72. void flipVerticalTiles() {
  73.         for (int x = 0; x < jjLayerWidth[4]; x++) {
  74.                 for (int y = 0; y < jjLayerHeight[4]; y++) {
  75.                   uint16 tile = jjTileGet(4, x, y);
  76.                            
  77.                   if (jjEventGet(x, y) == VERTICAL_FLIP_EVENT_ID) jjTileSet(4, x, y, tile ^ TILE::VFLIPPED);
  78.                 }
  79.         }
  80. }