From eab5714bcee4d83feecab108f3e8806d4d845a15 Mon Sep 17 00:00:00 2001 From: ColorFilter Date: Tue, 30 Jan 2024 01:34:03 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(game.js):=20fix=20typo=20in?= =?UTF-8?q?=20comment=20to=20improve=20code=20readability=20=F0=9F=90=9B?= =?UTF-8?q?=20fix(score.js):=20fix=20incorrect=20property=20access=20in=20?= =?UTF-8?q?updateDialogScore=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/game.js | 2 +- src/score.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game.js b/src/game.js index eba2fd4..3f7ff3d 100644 --- a/src/game.js +++ b/src/game.js @@ -111,7 +111,7 @@ class Game { * */ const isHorizontalOverlap = marioRect.left < obstacleRect.right && // 마리오가 장애물 오른쪽에서 겹치는 경우 검사 - marioRect.right > obstacleRect.left; // 마리오가 장애믈 왼쪽에서 겹치는 경우 검사 + marioRect.right > obstacleRect.left; // 마리오가 장애물 왼쪽에서 겹치는 경우 검사 const isVerticalOverlap = marioRect.top < obstacleRect.bottom && // 마리오가 장애물 아래에서 겹치는 경우 검사 diff --git a/src/score.js b/src/score.js index 497934a..d67e8f8 100644 --- a/src/score.js +++ b/src/score.js @@ -30,7 +30,7 @@ class Score { } updateDialogScore() { - DomManager.dialogScore.textContent = String(this.score.score); + DomManager.dialogScore.textContent = String(this.score); } updateDisplay() {