Files

44 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 3/14 · [önceki](main-2.md) · [sonraki](main-4.md)
```javascript
var type = mappet.getParticleType(particleName);
if (type) {
world.spawnParticles(type, true, x, y, z, count, dx, dy, dz, speed);
}
}
// ---------- Yardımcı: şok halkası (look'a dik düzlemde) --------
function spawnShockRing(cx, cy, cz, radius, morph, expiration, twist) {
var points = 12;
for (var i = 0; i < points; i++) {
var a = (i / points) * Math.PI * 2 + twist;
var ca = Math.cos(a), sa = Math.sin(a);
var rx = cx + (rightX * ca + upX * sa) * radius;
var ry = cy + (upY * sa) * radius;
var rz = cz + (rightZ * ca + upZ * sa) * radius;
world.displayMorph(morph, expiration, rx, ry, rz, (a * 180 / Math.PI), 0, 96, null);
}
}
// ---------- Sinematik intro ------------------------------------
player.sendTitleDurations(2, 30, 10);
player.sendTitle("§5§lH O L L O W");
// =================================================================
// AŞAMA 1: ŞARJ - Mavi & Kırmızı çift sarmal + gravity well
// =================================================================
var t = 0;
function chargeLoop(ctx) {
if (t === 0) {
// Gojo Japanese Voice Summoning lines (Auto-Installed Resource Pack)
world.playSound("gojo:ao", bx, by, bz, 3.0, 1.0);
world.playSound("gojo:blue", bx, by, bz, 3.0, 1.0);
world.playSound("gojo:aka", bx, by, bz, 3.0, 1.0);
world.playSound("gojo:red", bx, by, bz, 3.0, 1.0);
world.playSound("gojo:chant", bx, by, bz, 3.0, 1.0);
```