Files

47 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# hollow_purple.js — main() (satır 9)
[← hollow_purple.js](index.md) · [← Master](../../wiki.md)
Parça 12/15 · [önceki](main-11.md) · [sonraki](main-13.md)
```javascript
            drawSphere(cx, cy, cz, coreR, morphGlow, 2, t * 0.3, t * 30, t * 20);
            spawnFx("dragonbreath", cx, cy, cz, 30, 0.4, 0.4, 0.4, 0.02);
        }
        // === ÇATIRTMA ===
        if (t > CHARGE_TICKS * 0.5 && t % 3 === 0) {
            for (var lc = 0; lc < 5; lc++) {
                var la = Math.random() * Math.PI * 2;
                var ld = 1.5 + Math.random() * 3.0;
                spawnFx("fireworksSpark",
                    cx + Math.cos(la) * ld, cy + (Math.random() - 0.5) * 3.5, cz + Math.sin(la) * ld,
                    6, 0.05, 0.05, 0.05, 0.15);
            }
            world.playSound("minecraft:entity.firework.blast", cx, cy, cz, 1.2, 2.0);
        }
        // === AMBIENT ===
        if (t % 8 === 0) {
            var pitch = 0.5 + progress * 1.5;
            world.playSound("minecraft:block.portal.ambient", cx, cy, cz, VOL_AMB, pitch);
            player.playStaticSound("minecraft:block.beacon.ambient", 0.8, pitch);
        }
        t++;
        ctx.scheduleScript(1, chargeLoop);
    }
    // =================================================================
    // AŞAMA 2 — DEV MOR KÜRE: ilerler, deler, HER 20 BLOKTA PATLAR
    // =================================================================
    var pt  = 0;
    var px  = cx, py  = cy, pz  = cz;
    var lpx = cx, lpy = cy, lpz = cz;
    var nextExplodeDist = EXPLODE_EVERY;
    function purpleLoop(ctx) {
        lpx = px; lpy = py; lpz = pz;
        px += lookX * FLIGHT_SPEED;
```