1.8 KiB
1.8 KiB
hollow_purple.js — main() (satır 9)
Parça 10/15 · önceki · sonraki
blastDebris(ctx, cx, cy, cz, 40, 1.2, 16);
shockwaveRing(ctx, cx, cy, cz, morphRing, 12.0, 10);
shockwaveRing(ctx, cx, cy, cz, morphPurple, 16.0, 14);
spawnFx("hugeexplosion", cx, cy, cz, 12, 0.0, 0.0, 0.0, 0.1);
spawnFx("largeexplode", cx, cy, cz, 20, 2.0, 2.0, 2.0, 0.0);
spawnFx("endRod", cx, cy, cz, 150, 3.0, 3.0, 3.0, 0.6);
spawnFx("dragonbreath", cx, cy, cz, 200, 3.5, 3.5, 3.5, 0.06);
ctx.scheduleScript(1, purpleLoop);
return;
}
var angle = t * 0.5;
var progress = t / CHARGE_TICKS;
var radius = 8.0 * (1.0 - progress * 0.7); // DEV sarmal
// === MAVİ SARMAL (3 strand) ===
for (var sb = 0; sb < 3; sb++) {
var offB = sb * (Math.PI * 2 / 3);
world.displayMorph(morphBlue, 3,
cx + Math.cos(angle + offB) * radius,
cy + Math.sin(t * 0.25 + offB) * (radius * 0.4),
cz + Math.sin(angle + offB) * radius,
angle * 57.3, 0, 96, null);
spawnFx("portal", cx + Math.cos(angle + offB) * radius, cy, cz + Math.sin(angle + offB) * radius, 4, 0.1, 0.1, 0.1, 0.02);
}
// === KIRMIZI SARMAL (3 strand, zıt) ===
for (var sr = 0; sr < 3; sr++) {
var offR = sr * (Math.PI * 2 / 3) + Math.PI / 3;
world.displayMorph(morphRed, 3,