Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
Anniversary Bash 18 Levels | Jazz2Online | Multiple | N/A |
/*** Written or lazily copypasted by Slaz with all important stuff done by Violet CLM ***/
/*** Feel free to use/edit this script like I did :P ***/
/*** Eyecandy functions ***/
const array<uint8> gunProfilePics = {0, 83+20+33, 25, 29, 34, 49, 57, 59, 62, 68};
const array<uint8> gunPoweredProfilePics = {0, 18, 24, 28, 33, 48, 56, 59, 61, 67};
void onFunction1(jjPLAYER@ play) {
play.showText("@@@@Your blaster is frozen!@Find explosive icing near candy stashes!");
}
void onLevelLoad() {
jjTexturedBGTexture = TEXTURE::CORRUPTEDSANCTUARY;
jjTexturedBGFadePositionY = -0.20;
jjPalette.gradient(0,0,180, 0,0,20, 176, 32);
jjUseLayer8Speeds = true;
jjObjectPresets[OBJECT::ICEBULLET].behavior = jjObjectPresets[OBJECT::ICEBULLETPU].behavior = IceUntilDeath;
jjWeapons[WEAPON::BLASTER].infinite = false;
jjWeapons[WEAPON::BLASTER].maximum = 0;
jjWeapons[WEAPON::ICE].maximum = 30;
}
bool onDrawAmmo(jjPLAYER@ play, jjCANVAS@ screen) {
uint8 an;
if (play.powerup[WEAPON::CURRENT]) an = gunPoweredProfilePics[play.currWeapon];
else an = gunProfilePics[play.currWeapon];
if (play.currWeapon == WEAPON::BLASTER && play.charCurr == CHAR::SPAZ) ++an;
for (int8 i = 0; i < play.ammo[WEAPON::CURRENT]; ++i )
screen.drawSprite(jjSubscreenWidth - 20 - i*(jjSubscreenWidth/128), jjSubscreenHeight - 20, 0, an, (jjRenderFrame+i)/5, 0, (i+1 == play.ammo[WEAPON::CURRENT]) ? SPRITE::NORMAL : SPRITE::TRANSLUCENT);
return true;
}
/*** Gameplay functions ***/
void IceUntilDeath(jjOBJ@ obj) {
if (obj.state == STATE::EXPLODE) {
obj.eventID += 2;
obj.behavior = BEHAVIOR::RFBULLET;
}
else obj.behave(BEHAVIOR::BULLET);
}
void onPlayerInput(jjPLAYER@ play) {
if (play.frozen > 0)
play.keyFire = false;
}
void onPlayer(jjPLAYER@ play) {
if (play.ammo[WEAPON::ICE] > 0) play.currWeapon = WEAPON::ICE;
}
Jazz2Online © 1999-INFINITY (Site Credits). We have a Privacy Policy. Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats.
Eat your lima beans, Johnny.