Downloads containing folctf03.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 16 Levels Jazz2Online Multiple N/A Download file
JJ2+ Only: Depths of Void Foly Capture the flag 6.4 Download file

File preview

     // - - - - - - - - - - - - - - - //
    // -  Made by: Foly            - //
   // - Last Edit: 01-08-13       - //
  // - - - - - - - - - - - - - - - //
 
jjOBJ@ warp;

void onMain() {
	if (jjGameTicks == 1) {
		@warp = jjObjects[jjAddObject(OBJECT::APPLE, 57*32 + 16, 11*32 + 16)];
		warp.objType = 3;
		warp.determineCurAnim(ANIM::PICKUPS, 86, true);
		@warp = jjObjects[jjAddObject(OBJECT::APPLE, 84*32 + 16, 18*32 + 24)];
		warp.objType = 3;
		warp.determineCurAnim(ANIM::PICKUPS, 86, true);
	}
	for (int i = 0; i < jjObjectCount; i++) {
		jjOBJ@ obj = jjObjects[i];
		if (obj.isActive)
			switch (obj.eventID) {
				case (OBJECT::COPTER):
					obj.var[3] = 210;
					if (obj.var[0] == 0 && obj.var[4] > 0)
						obj.counter = 0;
					break;
				case (OBJECT::FULLENERGY):
					if (obj.xPos < 57*32)
						obj.xPos = 57*32;
					if (obj.yPos > 32*53)
						obj.yPos = 32*50;
					break;
				default:
					continue;
			}
	}
	
}