Downloads containing xlmtapIIctf03.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

void onPlayer(jjPLAYER@ play) {
        if (play.fly == FLIGHT::FLYCARROT && play.timerState == TIMER::STOPPED) play.timerStart(5*70);
        if (play.fly == FLIGHT::NONE) play.timerStop();
        if (play.timerState == TIMER::STARTED && play.timerTime <= 3*70 && play.timerTime > 0 && play.timerTime % 70 == 0) jjSamplePriority(SOUND::COMMON_NOCOIN);
}
 
void onPlayerTimerEnd(jjPLAYER@ play) { play.fly = FLIGHT::NONE; }
 
bool onDrawPlayerTimer(jjPLAYER@ play, jjCANVAS@ canvas) {
        if (play.fly == FLIGHT::FLYCARROT) {
                canvas.drawString(
                        jjSubscreenWidth - 73,
                        jjSubscreenHeight - 284,
                        "" + (play.timerTime + 70) / 70,
                        STRING::LARGE,
                        STRING::PALSHIFT,
                        play.timerTime > 3*70?
                                0 :
                                jjGameTicks % 28 > 14?
                                        -40 :
                                        -24
                );
               
                canvas.drawSprite(
                        jjSubscreenWidth - 90,
                        jjSubscreenHeight - 270,
                        ANIM::PICKUPS,
                        40,
                        jjGameTicks / 10 % 8
                );
        }
        return true;
}

void onLevelBegin() {
// jjWeapons[WEAPON::GUN8].spread = SPREAD::PEPPERSPRAY;
// jjWeapons[WEAPON::GUN8].gradualAim = true;

}

void onLevelLoad() {
	jjUseLayer8Speeds = true;
	
	jjLayers[6].spriteMode =
	jjLayers[7].spriteMode = SPRITE::BRIGHTNESS;

	jjLayers[6].spriteParam =
	jjLayers[7].spriteParam = 60;
	
//	jjTexturedBGFadePositionY = 0.4;
//	jjTexturedBGFadePositionX = 0.1;

	jjSetWaterLevel(32*96.5, true);
	jjWaterLayer = 9;
	jjWaterInteraction = WATERINTERACTION::SWIM;
	jjWaterChangeSpeed = 0;

	 jjPIXELMAP water(648);
	water.save(572, true);
	jjTileType[572] = 1;
}