Downloads containing hgfHandles.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Infiltration MissionFeatured Download happygreenfrog Single player 8.1 Download file

File preview

#include "MLLE-Include-1.4.asc"
const bool MLLESetupSuccessful = MLLE::Setup();
#pragma require "hgfHandles.j2l"

void onLevelLoad(){
 if(jjDifficulty < 2){
  jjPIXELMAP boringbrown(10);
  boringbrown.save(36);
  boringbrown.save(37);
  boringbrown.save(38);
  boringbrown.save(39);
 }
 else
 {
  for(int tile = 36; tile <= 39; ++tile)
  {
   jjPIXELMAP anim(tile); jjPIXELMAP animold(tile);
   for(int x = 0; x < 32; ++x)
   {
    for(int y = 0; y < 32; ++y)
     {
      if (animold[x, y] >= 74 && animold[x, y] <= 77)
	  //if (animold[x, y] >= 73 && animold[x, y] <= 77)
	  {
	   anim[x, y] = animold[x,y]-7;
	  }
      if (animold[x, y] == 73)
	  {
	   anim[x, y] = 43;
	  }
      if (animold[x, y] == 78)
	  {
	   anim[x, y] = 42;
	  }
	 }
   }
  anim.save(tile);
  }
 }
}

void onFunction0(jjPLAYER@ player){
 if(jjDifficulty >= 2){player.showText("@WARNING: The glowing red floors@have lava in them!@They hurt!");}
 //else{player.showText("@The glowing red floors are safe.@Don't sweat it!");}
 else{player.showText("@Good luck!");}
}

void onPlayer(jjPLAYER@ ply){ply.lives = 9;}
bool onDrawLives(jjPLAYER@ player, jjCANVAS@ canvas) {return true;}