diff --git a/src/scenes/levelend-scene.ts b/src/scenes/levelend-scene.ts index ad81df9e1..193d63415 100644 --- a/src/scenes/levelend-scene.ts +++ b/src/scenes/levelend-scene.ts @@ -1,4 +1,4 @@ -import { loadImages, CLICK, isDocumentVisible } from "@common"; +import { loadImages, CLICK, isDocumentVisible, Utils } from "@common"; import { AudioPlayer, Monster } from "@components"; import { CloseButton, NextButton, RetryButton } from "@buttons"; import { @@ -147,12 +147,14 @@ export class LevelEndScene { this.height + this.height * 0.12 ); this.drawStars(); - this.monster.update(deltaTime); - this.closeButton.draw(); - this.retryButton.draw(); - if (this.isLastLevel) { - this.nextButton.draw(); + + if (!Utils.isRespect) { + this.closeButton.draw(); + this.retryButton.draw(); + if (this.isLastLevel) { + this.nextButton.draw(); + } } } } @@ -223,6 +225,10 @@ export class LevelEndScene { const x = event.clientX - rect.left; const y = event.clientY - rect.top; + if (Utils.isRespect) { + return; + } + if (this.closeButton.onClick(x, y)) { this.audioPlayer.playButtonClickSound(); this.switchToLevelSelectionCB("LevelEnd");