Files

24 lines
726 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 — radiationWave() (satır 226)
[← radiation_explosion.js](index.md) · [← Master](../../wiki.md)
```javascript
function radiationWave(c, world, cx, cy, cz, r)
{
if (r <= RADIATION_RADIUS)
{
drawSphere(world, cx, cy, cz, r, r); // ilerledikçe daha yoğun kabuk
if (r % 6 === 0)
world.playSound("minecraft:block.note.pling", cx, cy, cz, 1.5, 0.4);
c.scheduleScript(1, function (ctx) {
radiationWave(ctx, ctx.getWorld(), cx, cy, cz, r + 1);
});
return;
}
// Genişleme bitti — tam radyasyon küresini birkaç kez pulsla (kalıcı his)
pulseSphere(c, world, cx, cy, cz, 0);
}
```