New rain and thunder effects added

This commit is contained in:
Mal
2024-12-14 12:09:49 +01:00
parent a583005814
commit f6ebd8f3aa
14 changed files with 183 additions and 11 deletions

View File

@@ -74,7 +74,7 @@ export class Game
for (const effect of this.level.fullscreenEffects) {
effect.update(timestamp);
effect.render(this.context);
effect.render(this.context, this.camera);
}
this.userInterface.draw(this.context);
@@ -238,6 +238,10 @@ export class Game
this.isPaused = false;
for (const effect of this.level.fullscreenEffects) {
effect.init();
}
window.requestAnimationFrame(loopFunction);
}