Downloads containing Jung2.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: KangarooFeatured Download Violet CLM Single player 9 Download file

File preview

  1. #include "kangaroo.asc"
  2. #pragma require "kangaroo.asc"
  3.  
  4. const OBJECT::Object JillEventID = OBJECT::BILSY; //could be anything; kangaroo.asc will overwrite the jjObjectPresets entry all but completely
  5.  
  6. void onLevelLoad() {
  7.         //make some basic changes to the end of the level area
  8.         for (uint y = 53; y <= 62; ++y) {
  9.                 jjEventSet(241, y, AREA::LIMITXSCROLL);
  10.                 jjEventSet(250, y, AREA::ACTIVATEBOSS);
  11.         }
  12.         jjEventSet(240, 60, JillEventID);
  13.        
  14.         //call a couple Kangaroo functions
  15.         Kangaroo::MakeEventJoey(OBJECT::MONKEY); //default parameters
  16.         Kangaroo::MakeEventJoey(OBJECT::STANDMONKEY, 0, 5, 5, 12, 5, 256); //custom parameters
  17.         Kangaroo::MakeEventJill(
  18.                 JillEventID,
  19.                 (jjDifficulty > 1) ? uint8(OBJECT::MONKEY) : 0, //Jill spawns Joeys only on Hard/Turbo
  20.                 true //turn red when the battle is mostly over
  21.         ).deactivates = false; //note that both MakeEventJoey and MakeEventJill return the jjObjectPresets entry of the eventID passed to them
  22. }