#include "MLLE-Include-1.6.asc" ///@MLLE-Generated #pragma require "ab26btl15-MLLE-Data-1.j2l" ///@MLLE-Generated #pragma require "ab26btl15.j2l" ///@MLLE-Generated const bool MLLESetupSuccessful = MLLE::Setup(); #include "limitedoxygen.asc" #pragma require "Carrot1.j2t" void onLevelLoad() { jjSetWaterGradient(10,10,80, 10,10,80); jjTexturedBGTexture = TEXTURE::PSYCH; jjTexturedBGFadePositionY = 0.33; jjUseLayer8Speeds = true; water::maxOxygen = 2300; } void onPlayer(jjPLAYER@ play) { water::limitedOxygen(play); } bool onDrawHealth(jjPLAYER@ play, jjCANVAS@ canvas) { water::drawOxygenTimer(play, canvas); return false; } 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; } } } }