Skip to content

Commit

Permalink
Wind Waker: d_a_ep now uses simple particles
Browse files Browse the repository at this point in the history
  • Loading branch information
themikelester committed Jan 1, 2025
1 parent 2f74099 commit ab74ba4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/ZeldaWindWaker/d_a.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ab74ba4

Please sign in to comment.