Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
Anniversary Bash 20 Levels | Jazz2Online | Multiple | N/A | |||||
Anniversary Bash 16 Levels | Jazz2Online | Multiple | N/A | |||||
Sky Gardens | Foly | Capture the flag | N/A |
// - - - - - - - - - - - - - - - //
// - Made by: Foly - //
// - Last Edit: 24-08-2013 - //
// - - - - - - - - - - - - - - - //
// - - - - - - - - - - //
// - Other Functions - //
// - - - - - - - - - - //
bool ObjectInArea(int x1, int y1, int x2, int y2, int objectID) {
jjOBJ@ obj = jjObjects[objectID];
return (obj.xPos > (x1 - 1)*32 &&
obj.xPos < x2*32 &&
obj.yPos > (y1 - 1)*32 &&
obj.yPos < y2*32);
}
// - - - - - - - - - - //
// - Main Functions - //
// - - - - - - - - - - //
void onMain() {
for (int i = 0; i < jjObjectCount; i++) {
jjOBJ@ obj = jjObjects[i];
if (obj.isActive)
switch (obj.eventID) {
case (OBJECT::CARROT):
case (OBJECT::FULLENERGY):
if (ObjectInArea(91, 51, 97, 54, i) || ObjectInArea(99, 51, 100, 53, i)) {
obj.xPos = 97*32 + 8;
obj.yPos = 51*32 + 16;
obj.xSpeed = 0;
obj.ySpeed = 0;
}
default:
break;
}
}
}
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.