From ab74ba474b10d75b61685c8882058d4ab1da94fb Mon Sep 17 00:00:00 2001 From: Mike Lester Date: Wed, 1 Jan 2025 16:19:29 -0700 Subject: [PATCH] Wind Waker: d_a_ep now uses simple particles --- src/ZeldaWindWaker/d_a.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ZeldaWindWaker/d_a.ts b/src/ZeldaWindWaker/d_a.ts index 180b12df7..0ab1a4ae5 100644 --- a/src/ZeldaWindWaker/d_a.ts +++ b/src/ZeldaWindWaker/d_a.ts @@ -249,13 +249,11 @@ class d_a_ep extends fopAc_ac_c { // Create particle systems. // TODO(jstpierre): Implement the real thing. - const pa = globals.particleCtrl.set(globals, 0, 0x0001, null)!; - vec3.copy(pa.globalTranslation, this.posTop); - pa.globalTranslation[1] += -240 + 235 + 15; + const pos = vec3.set(scratchVec3a, this.posTop[0], this.posTop[1] + -240 + 235 + 15, this.posTop[2]); + globals.particleCtrl.setSimple(0x0001, pos, 0xFF, White, White, false); if (this.type !== 2) { - const pb = globals.particleCtrl.set(globals, 0, 0x4004, null)!; - vec3.copy(pb.globalTranslation, pa.globalTranslation); - pb.globalTranslation[1] += 20; + pos[1] += 20; + globals.particleCtrl.setSimple(0x4004, pos, 0xFF, White, White, false); } const pc = globals.particleCtrl.set(globals, 0, 0x01EA, null)!; vec3.copy(pc.globalTranslation, this.posTop);