Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
![]() |
Anniversary Bash 27 Battle | Jazz2Online | Battle | N/A | ![]() |
jjPAL rainbowPalette = jjBackupPalette;
array<jjLAYER@> allLayers;
int mappingIndex = -1;
int hueStepsTaken = 0;
int hueStepsYetToTake = 0;
void onLevelLoad() {
mappingIndex = jjSpriteModeFirstFreeMapping();
for (uint i = 1; i <= 8; ++i) {
if (i <= 4 || i == 8) {
jjLayers[i].spriteMode = SPRITE::MAPPING;
jjLayers[i].spriteParam = mappingIndex;
}
}
jjLayers[1].spriteMode = jjLayers[2].spriteMode = SPRITE::TRANSLUCENTMAPPING;
jjSpriteModeSetMapping(mappingIndex, array<uint8>={}, rainbowPalette);
for (uint tileID = jjTileCount; --tileID != 0;)
jjTileType[tileID] = 0;
for (uint layerID = 5; layerID <= 8; ++layerID)
jjLayers[layerID].xSpeedModel = LAYERSPEEDMODEL::BOTHSPEEDS;
}
void onMain() {
if (hueStepsYetToTake != 0) {
--hueStepsYetToTake;
if (++hueStepsTaken & 31 == 0 && !jjLocalPlayers[0].isIdle) {
string color;
switch ((hueStepsTaken / 32) & 7) {
case 0:
color = "Green";
break;
case 1:
color = "Teal";
break;
case 2:
color = "Blue";
break;
case 3:
color = "Purple";
break;
case 4:
color = "Magenta";
break;
case 5:
color = "Red";
break;
case 6:
color = "Orange";
break;
case 7:
color = "Yellow";
break;
}
color += " Beret";
jjLevelName = color;
jjLevelName = color;
}
for (uint i = 10; i <= 245; i++) {
rainbowPalette.color[i].setHSL(jjBackupPalette.color[i].getHue() - 3 + hueStepsTaken, jjBackupPalette.color[i].getSat(), jjBackupPalette.color[i].getLight());
}
jjSpriteModeSetMapping(mappingIndex, array<uint8>={}, rainbowPalette);
jjLayers[4].spriteMode = SPRITE::MAPPING; //regenerate lookup tables
}
}
void onRoast(jjPLAYER@, jjPLAYER@) {
hueStepsYetToTake += 32;
}
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.