Files

47 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
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.
# gojo_purple.js — main() (satır 9)
[← gojo_purple.js](index.md) · [← Master](../../wiki.md)
Parça 5/14 · [önceki](main-4.md) · [sonraki](main-6.md)
```javascript
spawnFx("hugeexplosion", bx, by, bz, 5, 0.0, 0.0, 0.0, 0.1);
spawnFx("largeexplode", bx, by, bz, 3, 0.5, 0.5, 0.5, 0.0);
spawnFx("endRod", bx, by, bz, 80, 1.0, 1.0, 1.0, 0.6);
// İlk şok halkası
spawnShockRing(bx, by, bz, 2.0, ringMorph, 4, 0);
ctx.scheduleScript(1, purpleLoop);
return;
}
var angle = t * 0.6;
var progress = t / chargeDuration;
var radius = 4.0 * (1 - progress);
// === HEDEFI MERKEZE ÇEKME VE SUSPEND ETME (GRAVITY WELL) ===
if (hasTarget && target.isLivingBase()) {
var tPos = target.getPosition();
var tdx = bx - tPos.x;
var tdy = by - (tPos.y + target.getHeight() * 0.5);
var tdz = bz - tPos.z;
var tDist = Math.sqrt(tdx*tdx + tdy*tdy + tdz*tdz);
if (tDist > 0.1) {
target.addMotion(tdx * 0.25, tdy * 0.25 + 0.1, tdz * 0.25);
}
target.setFallDistance(0);
// Kurban etrafında girdap efektleri
spawnFx("witchMagic", tPos.x, tPos.y + target.getHeight() * 0.5, tPos.z, 6, 0.3, 0.3, 0.3, 0.02);
spawnFx("portal", tPos.x, tPos.y + target.getHeight() * 0.5, tPos.z, 4, 0.2, 0.2, 0.2, 0.1);
}
// === ÇİFT MAVİ SARMAL (2 strand) ===
for (var sa = 0; sa < 2; sa++) {
var off = sa * Math.PI;
var x1 = bx + Math.cos(angle + off) * radius;
var y1 = by + Math.sin(t * 0.3 + off) * (radius * 0.4);
var z1 = bz + Math.sin(angle + off) * radius;
```