Files

40 lines
1.8 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 11/15 · [önceki](main-10.md) · [sonraki](main-12.md)
```javascript
                cx + Math.cos(angle + offR) * radius,
                cy - Math.sin(t * 0.25 + offR) * (radius * 0.4),
                cz + Math.sin(angle + offR) * radius,
                angle * 57.3, 0, 96, null);
            spawnFx("reddust", cx + Math.cos(angle + offR) * radius, cy, cz + Math.sin(angle + offR) * radius, 6, 0.1, 0.1, 0.1, 0.0);
        }
        // === DEV GRAVITY WELL HALKASI ===
        var gRad = 9.0 - progress * 4.5;
        for (var g = 0; g < 12; g++) {
            var ga = (g / 12.0) * Math.PI * 2 + t * 0.18;
            world.displayMorph(morphRing, 2,
                cx + (rightX * Math.cos(ga) + upX * Math.sin(ga)) * gRad,
                cy + (upY * Math.sin(ga)) * gRad,
                cz + (rightZ * Math.cos(ga) + upZ * Math.sin(ga)) * gRad,
                ga * 57.3, 0, 80, null);
        }
        // === HEDEF GRAVITY WELL ===
        if (hasTarget && target.isLivingBase()) {
            var tPos = target.getPosition();
            var tdx = cx - tPos.x, tdy = cy - (tPos.y + 0.9), tdz = cz - tPos.z;
            var tDist = Math.sqrt(tdx*tdx + tdy*tdy + tdz*tdz);
            if (tDist > 0.1) target.addMotion(tdx * 0.22, tdy * 0.22 + 0.08, tdz * 0.22);
            target.setFallDistance(0);
            spawnFx("witchMagic", tPos.x, tPos.y + 1, tPos.z, 10, 0.3, 0.3, 0.3, 0.03);
        }
        // === BÜYÜYEN ÇEKİRDEK KÜRE (son %40) ===
        if (t > CHARGE_TICKS * 0.6) {
            var coreR = 1.0 + (progress - 0.6) * 7.0;
```