Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
My first levels with Angel... | DennisKainz | Single player | 7 |
uint rest = 0;
void onLevelLoad() {
jjObjectPresets[OBJECT::NORMTURTLE].energy = 8;
jjObjectPresets[OBJECT::BEE].energy = 8;
jjObjectPresets[OBJECT::TURTLESHELL].energy = 32;
jjObjectPresets[OBJECT::TUFTURT].energy = 32;
jjObjectPresets[OBJECT::DEMON].energy = 16;
p.lives = 0; //The goal is to score 33'000, so you have no retries.
p.jumpStrength = -15; //Now you can jump a little bit higher.
p.xSpeed = 1; //These were supposed to reduce the player's
p.xAcc = 1; //movement speed, but they didn't work! :(
}
void onMain() {
rest++;
p.food = 50; //There's no sugar rush in this game.
if (jjGameTicks == 1)
p.health = 2;
if (jjGameTicks == 86)
p.health = 3;
if (jjGameTicks == 91)
p.health = 4;
if (jjGameTicks == 96)
p.health = 5;
jjPalette.gradient(255, (p.health - 1) * 48, (p.health - 1) * 32, 0, p.health * 16, p.health * 32, 176, 32, 1.0);
jjPalette.gradient(224, (p.health - 1) * 40, (p.health - 1) * 16, 0, 0, 0, 112, 16, 1.0);
jjPalette.gradient(128, (p.health - 1) * 48, p.health * 40, 0, 0, 0, 128, 16, 1.0);
jjPalette.gradient(196, (p.health - 1) * 32, p.health * 48, 0, 0, 0, 144, 16, 1.0);
jjPalette.gradient(32, p.health * 24, p.health * 32, 32, p.health * 24, p.health * 32, 208, 16, 1.0);
jjPalette.gradient(160, (p.health - 1) * 56, p.health * 16, 0, 0, 0, 96, 16, 1.0);
jjPalette.apply(); // Everything becomes red as you get hurt.
if (p.score > 33000)
jjEventSet(p.xPos / 32, p.yPos / 32, AREA::EOL); //Earn a high score to complete the level.
if (rest > 4200)
if (p.health < 5)
{
rest = 0;
p.health = p.health + 1; //Regain 1 HP every minute.
}
}
void onPlayer() {
p.noFire = (p.currWeapon == WEAPON::BLASTER);
if (p.ammo[WEAPON::CURRENT] > 10)
p.ammo[WEAPON::CURRENT] = 10;
}
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.