Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
Anniversary Bash 25 CTF | Jazz2Online | Capture the flag | N/A |
const bool MLLESetupSuccessful = MLLE::Setup(); ///@MLLE-Generated
#include "MLLE-Include-1.6.asc" ///@MLLE-Generated
#pragma require "ab25ctf22.j2l" ///@MLLE-Generated
void onLevelLoad() {
jjTexturedBGTexture = TEXTURE::RANEFORUSV;
jjUseLayer8Speeds = true;
jjObjectPresets[OBJECT::BOUNCERBULLET].behavior = bouncer;
jjLayerOrderSet(array<jjLAYER@> = {jjLayers[2], jjLayers[3], jjLayers[4], jjLayers[5], jjLayers[6], jjLayers[7], jjLayers[1], jjLayers[8]});
}
void onMain() {
for (int i = 1; i < jjObjectCount; i++) {
jjOBJ@ o = jjObjects[i];
if (o.isActive) {
if (o.behavior == BEHAVIOR::PICKUP && o.state == STATE::FLOATFALL) {
o.state = STATE::FLOAT;
}
}
}
}
void bouncer(jjOBJ@ obj) {
float xSpeed = obj.xSpeed;
float ySpeed = obj.ySpeed;
obj.behave(BEHAVIOR::BOUNCERBULLET);
if (xSpeed * obj.xSpeed < 0.f && ySpeed * obj.ySpeed < 0.f) {
if (!jjMaskedPixel(int(obj.xPos + obj.xSpeed), int(obj.yPos + ySpeed))) {
obj.var[0] = obj.var[0] - 1;
obj.ySpeed = ySpeed;
if (ySpeed > 0.f)
obj.yPos += ySpeed;
}
}
}
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.