Downloads containing ab17ctf11.j2as

Downloads
Name Author Game Mode Rating
TSF with JJ2+ Only: Anniversary Bash 17 Levels Jazz2Online Multiple N/A 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;
//if (jjIsServer) jjChat("/fireball off");
}

//void onLevelStopped() {
//if (jjIsServer) jjChat("/fireball on");
//}

//void onLevelStarted() {
//if (jjIsServer) jjChat("/fireball off");
//}