From c1fa43593c4b8d7596a9b0582a72d13203933988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Wed, 4 Dec 2019 10:46:09 +0900 Subject: [PATCH] Fix: just on time experience app timer text layer --- src/game/mouse/just_on_time/just_on_time.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/game/mouse/just_on_time/just_on_time.js b/src/game/mouse/just_on_time/just_on_time.js index 0e8953c..8d2ce72 100644 --- a/src/game/mouse/just_on_time/just_on_time.js +++ b/src/game/mouse/just_on_time/just_on_time.js @@ -26,11 +26,6 @@ JustOnTime.prototype.create = function() { sessionStorageManager.setIsNewAppHighestRecord(false); - var experienceAppTimer = new ExperienceAppTimer(); - experienceAppTimer.setTimeOverListener( - (function() { this.timeOver(); }).bind(this) - ); - // keyboard shortcut this.keyboardShortcut = new KeyboardShortcut(); this.keyboardShortcut.addCallback( @@ -109,6 +104,12 @@ JustOnTime.prototype.create = function() { this.god = new God(); + // experience app timer must be shown over god character + var experienceAppTimer = new ExperienceAppTimer(); + experienceAppTimer.setTimeOverListener( + (function() { this.timeOver(); }).bind(this) + ); + // bottom ui var screenBottomUI = new ScreenBottomUI(); screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());