Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
My first levels with Angel... | DennisKainz | Single player | 7 |
uint megafall = 0;
uint minemove = 10;
uint minedir = 0;
uint nocopterears = 0;
uint shifter = 1120;
uint trigplat = 0;
uint rerain = 0;
jjOBJ@ waterplat, mine;
void onLevelLoad() {
jjObjectPresets[OBJECT::STANDMONKEY].energy = 30;
jjObjectPresets[OBJECT::CRAB].energy = 20;
jjObjectPresets[OBJECT::FISH].energy = 10;
jjObjectPresets[OBJECT::DEMON].energy = 50;
jjObjectPresets[OBJECT::BEE].energy = 10;
p.jumpStrength = -5;
jjObjectPresets[OBJECT::BLASTERBULLET].counterEnd = 20;
@waterplat = jjObjects[0];
@mine = jjObjects[0];
p.lives = 64;
jjPalette.gradient(0, 16, 24, 0, 16, 24, 176, 32, 1.0);
jjPalette.gradient(224, 192, 160, 8, 8, 0, 120, 8, 1.0);
jjPalette.gradient(128, 160, 160, 8, 8, 0, 160, 16, 1.0);
jjPalette.gradient(96, 96, 32, 32, 0, 16, 136, 8, 1.0);
jjPalette.gradient(32, 224, 96, 0, 0, 0, 16, 8, 1.0);
jjPalette.gradient(224, 64, 0, 0, 0, 0, 24, 8, 1.0);
jjPalette.gradient(80, 160, 192, 0, 0, 0, 32, 8, 1.0);
jjPalette.gradient(255, 192, 64, 0, 0, 0, 40, 8, 1.0);
jjPalette.gradient(255, 160, 192, 0, 0, 0, 48, 8, 1.0);
jjPalette.gradient(255, 192, 64, 64, 0, 0, 59, 5, 1.0);
jjPalette.gradient(255, 224, 192, 0, 0, 0, 64, 8, 1.0);
jjPalette.gradient(192, 224, 255, 0, 0, 0, 72, 8, 1.0);
jjPalette.gradient(64, 248, 255, 0, 0, 0, 80, 8, 1.0);
jjPalette.gradient(192, 64, 255, 0, 0, 0, 88, 8, 1.0);
jjPalette.apply();
p.fastfire = 10;
}
void onMain() {
rerain = rerain + 1;
if (rerain > 700)
rerain = 0;
if (rerain == 690)
jjLayerXAutoSpeed[7] = (jjRandom()%5) + 5;
jjLayerYAutoSpeed[7] = (0 - jjLayerXAutoSpeed[7]) * 1.125;
p.food = 0;
if (waterplat.eventID != OBJECT::GRASSPLATFORM)
if (!waterplat.isActive)
@waterplat = jjObjects[jjAddObject(OBJECT::GRASSPLATFORM, shifter, 1024)];
jjSetWaterGradient((p.yPos / 16) - 64, p.yPos / 4, 1, (p.yPos / 16) - 64, p.yPos / 4, 1);
jjWaterLighting = WATERLIGHT::GLOBAL;
if (jjWaterLevel < 1024)
{
megafall = 0;
p.ySpeed = (p.ySpeed / 1.25);
}
if (p.yPos > 1024)
{
if (p.charCurr == CHAR::FROG)
p.morphTo(CHAR::SPAZ, false);
jjSetWaterLevel(0, true);
if (p.timerState == TIMER::STOPPED)
p.timerStart(3500, false);
}
if (p.yPos < 1024)
{
p.timerStop();
jjSetWaterLevel(2048, true);
}
p.xSpeed = (p.xSpeed / 1.075);
if (p.xSpeed > 4)
{
p.xPos = p.xOrg - 64;
p.yPos = p.yOrg + 72;
}
if (p.xSpeed < -4)
{
p.xPos = p.xOrg - 64;
p.yPos = p.yOrg + 72;
}
if (p.charCurr == CHAR::FROG)
p.jumpStrength = -10;
if (p.charCurr != CHAR::FROG)
p.jumpStrength = -5.5;
if (p.ySpeed > 5.5)
if (p.charCurr != CHAR::FROG)
megafall = 1;
if (p.ySpeed > 7)
{
if (p.charCurr != CHAR::FROG)
megafall = 2;
if (p.charCurr == CHAR::FROG)
megafall = 1;
}
if (megafall == 1)
if (p.ySpeed == 0)
{
if (p.health == 0)
p.kill();
p.health = p.health - megafall;
megafall = 0;
}
if (megafall == 2)
if (p.ySpeed == 0)
{
p.kill();
megafall = 0;
}
p.alreadyDoubleJumped = true;
if (p.charCurr == CHAR::JAZZ)
p.morphTo(CHAR::SPAZ, false);
if (p.charCurr == CHAR::LORI)
p.morphTo(CHAR::SPAZ, false);
waterplat.xOrg = shifter;
if (trigplat == 1)
if (shifter < 1760)
shifter = shifter + 1;
if (trigplat == 0)
if (shifter > 1120)
shifter = shifter - 1;
if (p.yPos > 1016)
p.jumpStrength = -1.5;
}
void onFunction0() {
trigplat = 1;
}
void onFunction1() {
trigplat = 0;
}
void onPlayer() {
if (p.lives != 64)
jjNxt("end", false, true);
if (p.health < 1)
p.kill();
}
void onPlayerTimerEnd() {
p.kill();
}
void onFunction5() {
jjMusicLoad("jungle_world.xm");
}
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.