Downloads containing BLGnf03.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Several asymmetrical... Rysice Multiple N/A Download file

File preview

  1. #include "MLLE-Include-1.6.asc" ///@MLLE-Generated
  2. #pragma require "spacetemple.j2t" ///@MLLE-Generated
  3. const bool MLLESetupSuccessful = MLLE::Setup();
  4. #pragma require "BLGnf03-MLLE-Data-1.j2l"
  5. #pragma require "LomatLn.j2t"
  6. #pragma require "Aztec2.j2t"
  7. #pragma require "BLGnf03.j2l"
  8.  
  9. void onPlayer(jjPLAYER@ play) { play.noFire = (play.currWeapon == WEAPON::BLASTER);
  10.  
  11. }
  12.  
  13. void SnowFood() {
  14.  
  15.     jjANIMATION@ anim = jjAnimations[jjObjectPresets[OBJECT::LEMON].curAnim];
  16.  
  17.     anim.frameCount = 1;
  18.  
  19.     jjANIMFRAME@ frame = jjAnimFrames[anim.firstFrame];
  20.  
  21.     jjPIXELMAP snowflake((10*370));
  22.  
  23.    snowflake.save(frame);
  24.  
  25.     frame.hotSpotX = -frame.width / 2;
  26.  
  27.     frame.hotSpotY = -frame.height / 2;
  28.  
  29. }
  30.  
  31. void RudeFood() {
  32.  
  33.     jjANIMATION@ anim = jjAnimations[jjObjectPresets[OBJECT::BANANA].curAnim];
  34.  
  35.     anim.frameCount = 1;
  36.  
  37.     jjANIMFRAME@ frame = jjAnimFrames[anim.firstFrame];
  38.  
  39.     jjPIXELMAP rude((10*370) + 2);
  40.  
  41.    rude.save(frame);
  42.  
  43.     frame.hotSpotX = -frame.width / 2;
  44.  
  45.     frame.hotSpotY = -frame.height / 2;
  46.  
  47.  
  48. }
  49.  
  50.  
  51. void WoodFood() {
  52.  
  53.     jjANIMATION@ anim = jjAnimations[jjObjectPresets[OBJECT::APPLE].curAnim];
  54.  
  55.     anim.frameCount = 1;
  56.  
  57.     jjANIMFRAME@ frame = jjAnimFrames[anim.firstFrame];
  58.  
  59.     jjPIXELMAP wood((10*370) + 1);
  60.  
  61.    wood.save(frame);
  62.  
  63.     frame.hotSpotX = -frame.width / 2;
  64.  
  65.     frame.hotSpotY = -frame.height / 2;
  66.  
  67. }
  68.  
  69. void onLevelLoad() {
  70.  
  71.     WoodFood();
  72.  
  73.     SnowFood();
  74.     RudeFood();
  75. }
  76.  
  77.