Files

29 lines
899 B
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.
# radiation_explosion.js — main() (satır 38)
[← radiation_explosion.js](index.md) · [← Master](../../wiki.md)
Parça 2/2 · [önceki](main.md)
```javascript
shells[shell].push([cx + dx, yy, cz + dz]);
}
}
}
// Yok edilen blokların yedeği (geri getirmek için) — kabuk kabuk saklanır
var saved = [];
for (var r2 = 0; r2 <= BLAST_RADIUS; r2++) saved[r2] = [];
// --- 4) Yıkım dalgasını başlat (her tick bir kabuk) ---
destroyShell(c, world, shells, saved, cx, cy, cz, 0);
// --- 5) Radyasyon küresi görselini başlat (genişleyen yeşil dalga) ---
radiationWave(c, world, cx, cy, cz, 1);
// --- 6) 1.5 dakika sonra blokları geri getir ---
c.scheduleScript(RESTORE_DELAY, function (ctx) {
restoreShell(ctx, ctx.getWorld(), saved, BLAST_RADIUS);
});
}
```