Downloads containing xlmtapIIbtl05.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 20 Levels Jazz2Online Multiple N/A Download file
JJ2+ Only: Total Annihilation II:...Featured Download Loon Multiple 9.3 Download file

File preview

#pragma require "xlmdamn2.j2t"
jjPAL Sky;

void onLevelLoad() {
	
	Sky.load("xlmdamn2.j2t");
	jjPalette.copyFrom(176, 32, 176, Sky, 1);
	jjPalette.apply();

	jjWaterLayer = 3;
	jjSetWaterLevel(32*470, true);
	jjWaterChangeSpeed = 0;
	jjWaterInteraction = WATERINTERACTION::SWIM;
	
	
	jjOBJ@ preset = jjObjectPresets[OBJECT::FROZENSPRING];
	preset.behavior = coloredSpring;
	preset.bulletHandling = HANDLING::IGNOREBULLET;
	preset.freeze = 0;
	preset.ySpeed = -19.f;
	preset.xPos = preset.xOrg + 8;
	
	jjTexturedBGTexture = TEXTURE::PSYCH;
	
	jjLayerOrderSet(array<jjLAYER@> = {jjLayers[1], jjLayers[3], jjLayers[4], jjLayers[5], jjLayers[6], jjLayers[7], jjLayers[2], jjLayers[8]});
	jjUseLayer8Speeds = true;
}

void coloredSpring(jjOBJ@ obj) {
	obj.behave(BEHAVIOR::SPRING, false);
	jjDrawSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, obj.direction, SPRITE::PALSHIFT, 248);
}

void onLevelBegin() {
	
	for (int x = 0; x < jjLayerWidth[4]; x++) {
		for (int y = 0; y < jjLayerHeight[4]; y++) {
			uint16 tile = jjTileGet(4, x, y);
						
			if (jjEventGet(x, y) == 119) jjTileSet(4, x, y, tile ^ TILE::VFLIPPED);
		}
	}
}

void onPlayer(jjPLAYER@ p) {
 if (p.yPos < 400*32) p.keyDown = false;
}

void onMain(){
  jjOBJ@ obj;
  for(int i=0;i<jjObjectCount;i++)
  {
    @obj=jjObjects[i];
    if(!obj.isActive) {continue;}
    switch(obj.eventID)
    {
      case OBJECT::BLUESPRING:
        if(obj.xPos>1*32) {obj.ySpeed=-19.5;}
		if(obj.xPos>130*32) {obj.ySpeed=-20.5;}
        if(obj.freeze>0&&jjGameTicks%2==0) {obj.freeze++;}
        break;
	}
   }
   
   jjWeapons[WEAPON::GUN8].comesFromGunCrates = true;
   jjWeapons[WEAPON::GUN9].comesFromGunCrates = true;
   
   
}