Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
Anniversary Bash 19 Levels | Jazz2Online | Multiple | N/A | |||||
S**ttown | Loon | Multiple | 8 | |||||
S**ttown | Loon | Multiple | 8 | |||||
S**ttown | Loon | Multiple | 8 |
void onLevelLoad() {
jjUseLayer8Speeds = true;
jjWaterLayer = 7;
jjSetWaterGradient(2, 2, 2, 1, 2, 2);
jjWaterLighting = (WATERLIGHT::GLOBAL);
jjOBJ@ preset = jjObjectPresets[OBJECT::FROZENSPRING];
preset.behavior = coloredSpring;
preset.bulletHandling = HANDLING::IGNOREBULLET;
preset.freeze = 0;
preset.ySpeed = -18.f;
preset.xPos = preset.xOrg + 8;
}
void onDrawLayer7(jjPLAYER@ play, jjCANVAS@ screen) {
jjSetWaterLevel(-32, true);
}
void onDrawLayer4(jjPLAYER@ play, jjCANVAS@ screen) {
jjSetWaterLevel(16000, true);
}
void onLevelBegin() {
for (int x = 0; x < jjLayerWidth[4]; x++) {
for (int y = 0; y < jjLayerHeight[4]; y++) {
uint16 tile = jjTileGet(4, x, y);
if (jjEventGet(x, y) == 119) jjTileSet(4, x, y, tile ^ TILE::VFLIPPED);
}
}
}
void coloredSpring(jjOBJ@ obj) {
obj.behave(BEHAVIOR::SPRING, false);
jjDrawSpriteFromCurFrame(obj.xPos, obj.yPos, obj.curFrame, obj.direction, SPRITE::PALSHIFT, 216);
}
void offsetPosition(jjOBJ@ obj) {
obj.behave(BEHAVIOR::SPRING);
if (obj.xPos > 88*32 && obj.xPos < 90*32) obj.xPos = obj.xOrg + 12;
}
void onMain(){
jjOBJ@ obj;
for(int i=0;i<jjObjectCount;i++)
{
@obj=jjObjects[i];
if(!obj.isActive) {continue;}
switch(obj.eventID)
{
case OBJECT::GREENSPRING:
if(obj.xPos>110*32) {obj.ySpeed=-21.5;}
if(obj.freeze>0&&jjGameTicks%2==0) {obj.freeze++;}
break;
case OBJECT::BLUESPRING:
if(obj.yPos<32*32) {obj.ySpeed=-29.5;}
if(obj.freeze>0&&jjGameTicks%2==0) {obj.freeze++;}
break;
}
}
jjWeapons[WEAPON::GUN8].comesFromGunCrates = true;
jjWeapons[WEAPON::GUN9].comesFromGunCrates = true;
}
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.