Downloads containing xlmmitosis.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Mitosis Jgke Capture the flag 7.5 Download file

File preview

  1. const bool MLLESetupSuccessful = MLLE::Setup(); ///@MLLE-Generated
  2. #include "MLLE-Include-1.5.asc" ///@MLLE-Generated
  3. #pragma require "xlmmitosis-MLLE-Data-1.j2l" ///@MLLE-Generated
  4. #pragma require "xlmmitosis.j2l" ///@MLLE-Generated
  5. void onLevelLoad() {
  6.     jjObjectPresets[OBJECT::CARROT].behavior = Carrot();
  7.     jjObjectPresets[OBJECT::FULLENERGY].behavior = FullNRG();
  8. }
  9.  
  10. class Carrot : jjBEHAVIORINTERFACE {
  11.         void onBehave(jjOBJ@ obj) {
  12.         // the left carrot tends to get stuck if shot down...
  13.         if(obj.xPos < 720) {
  14.             obj.xPos = 720;
  15.         }
  16.         obj.behave(BEHAVIOR::PICKUP);
  17.     }
  18. }
  19.  
  20. class FullNRG : jjBEHAVIORINTERFACE {
  21.         void onBehave(jjOBJ@ obj) {
  22.         // the left carrot tends to get stuck if shot down...
  23.         obj.xPos = obj.xOrg;
  24.         obj.behave(BEHAVIOR::PICKUP);
  25.     }
  26. }