43 lines
1.9 KiB
Markdown
43 lines
1.9 KiB
Markdown
# Ae.js — transparentOwnerMorphNbt() (satır 808)
|
||
|
||
[← Ae.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
Parça 12/38 · [önceki](transparentOwnerMorphNbt-11.md) · [sonraki](transparentOwnerMorphNbt-13.md)
|
||
|
||
```javascript
|
||
var a = (i / points) * Math.PI * 2 + twist;
|
||
var x = state.centerX + Math.cos(a) * radius;
|
||
var z = state.centerZ + Math.sin(a) * radius;
|
||
spawnFx(world, particle, x, y, z, 1, 0, 0, 0, 0.02);
|
||
}
|
||
}
|
||
|
||
function drawDomain(world, state)
|
||
{
|
||
var t = state.tick * 0.12;
|
||
ring(world, state, state.centerY + 0.15, state.radius, "portal", 48, t);
|
||
ring(world, state, state.centerY + 0.95, state.radius, "fireworksSpark", 42, -t * 0.7);
|
||
ring(world, state, state.centerY + 1.85, state.radius * 0.98, "spellWitch", 42, t * 1.1);
|
||
ring(world, state, state.centerY + 2.85, state.radius * 0.88, "portal", 36, -t * 1.2);
|
||
ring(world, state, state.centerY + 3.9, state.radius * 0.62, "fireworksSpark", 28, t * 1.45);
|
||
ring(world, state, state.centerY + 5.0, state.radius * 0.28, "spellWitch", 18, -t * 1.8);
|
||
|
||
for (var i = 0; i < 18; i++)
|
||
{
|
||
var a = (i / 18) * Math.PI * 2 + t;
|
||
var x = state.centerX + Math.cos(a) * state.radius;
|
||
var z = state.centerZ + Math.sin(a) * state.radius;
|
||
spawnFx(world, "smoke", x, state.centerY + 1.1, z, 1, 0.02, 0.16, 0.02, 0.01);
|
||
spawnFx(world, "portal", x, state.centerY + 2.4, z, 1, 0, 0, 0, 0.02);
|
||
spawnFx(world, "fireworksSpark", x, state.centerY + 3.7, z, 1, 0.01, 0.05, 0.01, 0.02);
|
||
}
|
||
|
||
for (var j = 0; j < 12; j++)
|
||
{
|
||
var b = (j / 12) * Math.PI * 2 - t * 0.8;
|
||
var r = state.radius * (0.15 + (j % 4) * 0.18);
|
||
var sx = state.centerX + Math.cos(b) * r;
|
||
var sz = state.centerZ + Math.sin(b) * r;
|
||
spawnFx(world, "spellWitch", sx, state.centerY + 0.5 + (j % 5) * 0.75, sz, 1, 0.02, 0.05, 0.02, 0.02);
|
||
```
|