From decf0bd248289c30a6067b1c6d707fb8c09e8ee7 Mon Sep 17 00:00:00 2001 From: Anmol Upadhyay Date: Thu, 28 Aug 2025 11:48:39 +0530 Subject: [PATCH 1/2] if respect is enabled don't show the 3 buttons after level is completed --- src/scenes/levelend-scene.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/scenes/levelend-scene.ts b/src/scenes/levelend-scene.ts index ad81df9e1..07ed3807e 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(); + } } } } From 72bb6476e3c0fc2fedac8b0f71169b776819bb9d Mon Sep 17 00:00:00 2001 From: niteshmandal0 Date: Tue, 18 Nov 2025 10:28:18 +0530 Subject: [PATCH 2/2] fix: disabled button when respect is on --- src/scenes/levelend-scene.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scenes/levelend-scene.ts b/src/scenes/levelend-scene.ts index 07ed3807e..193d63415 100644 --- a/src/scenes/levelend-scene.ts +++ b/src/scenes/levelend-scene.ts @@ -225,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");