Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
Anniversary Bash 20 Levels | Jazz2Online | Multiple | N/A | |||||
Water Processing Plant | DarkSonic | Battle | 8 |
void onLevelLoad() {
jjAnimSets[ANIM::CUSTOM[0]].load(0, "BubbleGun.j2a");
jjAnimSets[ANIM::CUSTOM[1]].load(1, "BubbleGun.j2a");
jjAnimSets[ANIM::CUSTOM[2]].load(2, "BubbleGun.j2a");
jjAnimations[jjAnimSets[ANIM::AMMO] + 62] = jjAnimations[jjAnimSets[ANIM::AMMO] + 8];
jjAnimations[jjAnimSets[ANIM::AMMO] + 61] = jjAnimations[jjAnimSets[ANIM::CUSTOM[0]] + 0];
jjObjectPresets[OBJECT::FIREBALLBULLET].special = jjObjectPresets[OBJECT::FIREBALLBULLET].determineCurAnim(ANIM::AMMO, 8);
jjObjectPresets[OBJECT::FIREBALLBULLET].xSpeed = 2;
jjObjectPresets[OBJECT::FIREBALLBULLET].counterEnd = 105;
jjObjectPresets[OBJECT::FIREBALLBULLET].var[6] = 0;
jjObjectPresets[OBJECT::FIREBALLBULLET].freeze = 0;
jjObjectPresets[OBJECT::FIREBALLBULLET].lightType = jjObjectPresets[OBJECT::BLASTERBULLET].lightType;
jjObjectPresets[OBJECT::FIREBALLBULLETPU].special = jjObjectPresets[OBJECT::FIREBALLBULLETPU].determineCurAnim(ANIM::CUSTOM[0], 0);
jjObjectPresets[OBJECT::FIREBALLBULLETPU].xSpeed = 3;
jjObjectPresets[OBJECT::FIREBALLBULLETPU].counterEnd = 105;
jjObjectPresets[OBJECT::FIREBALLBULLETPU].var[6] = 8;
jjObjectPresets[OBJECT::FIREBALLBULLETPU].freeze = 0;
jjObjectPresets[OBJECT::FIREBALLBULLETPU].lightType = jjObjectPresets[OBJECT::BLASTERBULLET].lightType;
jjObjectPresets[OBJECT::FIREBALLBULLET].behavior = jjObjectPresets[OBJECT::FIREBALLBULLETPU].behavior = BubbleGun();
jjObjectPresets[OBJECT::GUN8POWERUP].determineCurAnim(ANIM::CUSTOM[1], 0, true);
jjWeapons[WEAPON::GUN8].spread = SPREAD::NORMAL;
jjWeapons[WEAPON::GUN8].defaultSample = false;
jjLayers[6].spriteMode = jjLayers[7].spriteMode = SPRITE::BRIGHTNESS;
jjLayers[6].spriteParam = 72;
jjLayers[7].spriteParam = 64;
jjPAL standard;
standard.load("Diam2.j2t");
jjPalette.copyFrom(16, 40, 16, standard, 1);
jjPalette.copyFrom(59, 37, 59, standard, 1);
jjPalette.apply();
for (int i = 188; i < 420; i++) {
jjPIXELMAP makeGreenBlue(i);
for (uint x = 0; x < makeGreenBlue.width; ++x) {
for (uint y = 0; y < makeGreenBlue.height; ++y) {
if (makeGreenBlue[x,y] >= 16 && makeGreenBlue[x,y] <= 23)
makeGreenBlue[x,y] += 57;
}
}
makeGreenBlue.save(i, true);
}
}
class BubbleGun : jjBEHAVIORINTERFACE {
void onBehave(jjOBJ@ bubble) {
if (bubble.state == STATE::START) {
bubble.state = STATE::FLY;
if (jjPlayers[bubble.creatorID].isLocal) jjSample(bubble.xPos, bubble.yPos, SOUND::COMMON_PLOP2, 0, 0);
}
if (jjMaskedPixel(int(bubble.xPos) + int(bubble.xSpeed), int(bubble.yPos)) || jjMaskedPixel(int(bubble.xPos) - int(bubble.xSpeed), int(bubble.yPos)) || jjMaskedPixel(int(bubble.xPos), int(bubble.yPos) + int(bubble.ySpeed)) || jjMaskedPixel(int(bubble.xPos), int(bubble.yPos) - int(bubble.ySpeed))) {
jjSample(bubble.xPos, bubble.yPos, SOUND::P2_SPLOUT, 0, 0);
}
bubble.behave(BEHAVIOR::WATERSHIELDBULLET);
if (bubble.state == STATE::FLY && bubble.counter > 0) {
switch (bubble.direction) {
case 1: bubble.xSpeed -= (bubble.eventID == OBJECT::FIREBALLBULLETPU? 0.1:0.04); bubble.ySpeed -= (bubble.eventID == OBJECT::FIREBALLBULLETPU? 0.1:0.04); break;
case -1: bubble.xSpeed += (bubble.eventID == OBJECT::FIREBALLBULLETPU? 0.1:0.04); bubble.ySpeed -= (bubble.eventID == OBJECT::FIREBALLBULLETPU? 0.1:0.04); break;
}
}
bubble.killAnim = jjObjectPresets[OBJECT::WATERSHIELDBULLET].killAnim;
}
}
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.