Skip to content

Commit

Permalink
preload effects
Browse files Browse the repository at this point in the history
  • Loading branch information
deebloo committed Feb 15, 2024
1 parent cb783ce commit df181a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sfx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export class Sfx {
if (script.dataset.assetPath) {
this.#stones.src = `${script.dataset.assetPath}/stones.webm`;
this.#effects.src = `${script.dataset.assetPath}/effects.webm`;

this.#stones.load();
this.#effects.load();
}
}
}
Expand Down

0 comments on commit df181a5

Please sign in to comment.