Skip to content

Commit

Permalink
게임 재시작시 타이머가 실행되지 않는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sadie100 committed Aug 25, 2024
1 parent 8f37061 commit 76a214e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/scenes/BaseScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class BaseScene extends Scene {

//라운드 종료
elapsedSeconds = 0;
isStageComplete = false;
nextRoundArrow = null;

constructor(key) {
Expand Down
3 changes: 1 addition & 2 deletions src/scenes/NormalScene.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ItemManager } from "../gameobjects/Item";
import { BaseScene } from "./BaseScene";

export class NormalScene extends BaseScene {
Expand Down Expand Up @@ -39,7 +38,7 @@ export class NormalScene extends BaseScene {
super.create();

this.setupSpawnTimer();

this.isStageComplete = false;
// 게임 시간 및 난이도 조절을 위한 타이머
this.time.addEvent({
delay: 1000, // 1초마다
Expand Down

0 comments on commit 76a214e

Please sign in to comment.