mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
New rain and thunder effects added
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user