Downloads containing xlmbb.j2as

Downloads
Name Author Game Mode Rating
JJ2+ Only: Byzantine BluesFeatured Download Jelly Jam Capture the flag 8.5 Download file

File preview

  1. void onLevelLoad() {
  2.         jjTexturedBGTexture = TEXTURE::RANEFORUSV;
  3.         jjUseLayer8Speeds = true;
  4.         jjObjectPresets[OBJECT::BOUNCERBULLET].behavior = bouncer;
  5.  
  6.          jjLayerOrderSet(array<jjLAYER@> = {jjLayers[2], jjLayers[3], jjLayers[4], jjLayers[5], jjLayers[6], jjLayers[7], jjLayers[1], jjLayers[8]});
  7. }
  8.  
  9. void onMain() {
  10.  
  11.         for (int i = 1; i < jjObjectCount; i++) {
  12.            jjOBJ@ o = jjObjects[i];
  13.            if (o.isActive) {
  14.                if (o.behavior == BEHAVIOR::PICKUP && o.state == STATE::FLOATFALL) {
  15.                      o.state = STATE::FLOAT;
  16.                 }
  17.            }
  18.         }
  19. }
  20.  
  21. void bouncer(jjOBJ@ obj) {
  22.     float xSpeed = obj.xSpeed;
  23.     float ySpeed = obj.ySpeed;
  24.     obj.behave(BEHAVIOR::BOUNCERBULLET);
  25.     if (xSpeed * obj.xSpeed < 0.f && ySpeed * obj.ySpeed < 0.f) {
  26.         if (!jjMaskedPixel(int(obj.xPos + obj.xSpeed), int(obj.yPos + ySpeed))) {
  27.             obj.var[0] = obj.var[0] - 1;
  28.             obj.ySpeed = ySpeed;
  29.             if (ySpeed > 0.f)
  30.                 obj.yPos += ySpeed;
  31.         }
  32.     }
  33. }