diff --git a/src/game/lib/chart.js b/src/game/lib/chart.js
index 35c26d5..05dfbdf 100644
--- a/src/game/lib/chart.js
+++ b/src/game/lib/chart.js
@@ -23,7 +23,8 @@ Chart.prototype.drawRecordGraph = function(index, date, bestRecord, min, max) {
this.drawText(
posX, posY - Chart.CHART_HEIGHT - Chart.CHART_RECORD_OFFSET_Y,
- StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID)
+ // StringUtil.getRecordTextWithoutUnit(bestRecord) + StringUtil.getScoreUnit(sessionStorageManager.playingAppID)
+ RecordUtil.getRecordValueWithUnit(bestRecord, sessionStorageManager.getPlayingAppID())
);
// chart
diff --git a/src/game/lib/record_util.js b/src/game/lib/record_util.js
index dfb7e54..7b68b7a 100644
--- a/src/game/lib/record_util.js
+++ b/src/game/lib/record_util.js
@@ -12,7 +12,7 @@ RecordUtil.getRecordValueText = function(record, appID) {
if(appID == 104)
return record.toFixed(2);
else
- NumberUtil.numberWithCommas(Math.floor(record));
+ return NumberUtil.numberWithCommas(Math.floor(record));
}
RecordUtil.getRecordUnit = function(appID) {
diff --git a/src/game/mouse/dodge/missile.js b/src/game/mouse/dodge/missile.js
index e472b2b..5fedfd8 100644
--- a/src/game/mouse/dodge/missile.js
+++ b/src/game/mouse/dodge/missile.js
@@ -181,7 +181,7 @@ Missile.prototype.speedUp = function() {
Missile.DEFAULT_SPEED_DOT_PER_SEC = 150;
-Missile.START_Radius_PX = 600;
+Missile.START_Radius_PX = 640;
Missile.START_RANDOM_Radius_PERCENT = 40;
Missile.SPACESHIP_RANDOM_AREA_MARGIN = 100;
\ No newline at end of file
diff --git a/src/game/mouse/dodge/stop_watch.js b/src/game/mouse/dodge/stop_watch.js
index eaab903..a47fdd9 100644
--- a/src/game/mouse/dodge/stop_watch.js
+++ b/src/game/mouse/dodge/stop_watch.js
@@ -7,6 +7,7 @@ function StopWatch() {
this.timerText = game.add.text(game.world.centerX, 35, "", fontStyle);
this.timerText.anchor.set(0.5);
+ this.printTime();
// var grd = this.label.context.createLinearGradient(0, 0, 0, StopWatch.FONT_HEIGHT_PX);
// grd.addColorStop(0, '#8ED6FF');
@@ -57,8 +58,9 @@ StopWatch.prototype.updateTimer = function() {
}
StopWatch.prototype.printTime = function() {
- var timeText = this.ellpasedTime.toFixed(2);
- this.timerText.text = timeText + "초";
+ this.timerText.text = RecordUtil.getRecordValueWithUnit(
+ this.ellpasedTime, sessionStorageManager.getPlayingAppID()
+ );
}
StopWatch.prototype.removeTimer = function() {
diff --git a/src/game/start/start.js b/src/game/start/start.js
index 047c76d..f4b1a60 100644
--- a/src/game/start/start.js
+++ b/src/game/start/start.js
@@ -50,7 +50,7 @@ var Start = {
// bottom ui
var screenBottomUI = new ScreenBottomUI();
- screenBottomUI.printLeftText("");
+ screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());
screenBottomUI.printCenterText(sessionStorageManager.getPlayingAppKoreanName());
screenBottomUI.printRightText(sessionStorageManager.getPlayerName());
diff --git a/src/web/client/card_matching.html b/src/web/client/card_matching.html
index 0db8995..568d361 100644
--- a/src/web/client/card_matching.html
+++ b/src/web/client/card_matching.html
@@ -41,6 +41,7 @@
+
diff --git a/src/web/client/dodge.html b/src/web/client/dodge.html
index dfbc141..fdd9af0 100644
--- a/src/web/client/dodge.html
+++ b/src/web/client/dodge.html
@@ -41,6 +41,7 @@
+
diff --git a/src/web/client/grilled_meat.html b/src/web/client/grilled_meat.html
index 1c9a099..d3271fb 100644
--- a/src/web/client/grilled_meat.html
+++ b/src/web/client/grilled_meat.html
@@ -41,6 +41,7 @@
+
diff --git a/src/web/client/space_invaders.html b/src/web/client/space_invaders.html
index 64d87bc..3592153 100644
--- a/src/web/client/space_invaders.html
+++ b/src/web/client/space_invaders.html
@@ -41,6 +41,7 @@
+
diff --git a/src/web/client/start.html b/src/web/client/start.html
index 929e141..6c5efff 100644
--- a/src/web/client/start.html
+++ b/src/web/client/start.html
@@ -20,6 +20,7 @@
+
diff --git a/src/web/client/typing_practice.html b/src/web/client/typing_practice.html
index f254629..25fede3 100644
--- a/src/web/client/typing_practice.html
+++ b/src/web/client/typing_practice.html
@@ -42,6 +42,7 @@
+
diff --git a/src/web/client/typing_test.html b/src/web/client/typing_test.html
index 5199282..ac117c6 100644
--- a/src/web/client/typing_test.html
+++ b/src/web/client/typing_test.html
@@ -42,6 +42,7 @@
+
diff --git a/src/web/client/whac_a_mole.html b/src/web/client/whac_a_mole.html
index 9fd38aa..485df1c 100644
--- a/src/web/client/whac_a_mole.html
+++ b/src/web/client/whac_a_mole.html
@@ -42,6 +42,7 @@
+
diff --git a/src/web/server/lib/app_highest_record.php b/src/web/server/lib/app_highest_record.php
index c15ec3c..cf476ac 100644
--- a/src/web/server/lib/app_highest_record.php
+++ b/src/web/server/lib/app_highest_record.php
@@ -4,7 +4,7 @@ function get_app_highest_record($maestro_id, $app_id, $player_id) {
global $db_conn;
$query = "
- SELECT HighestRecord
+ SELECT MAX(HighestRecord)
FROM app_highest_record
WHERE MaestroID = ? AND AppID = ? AND PlayerID = ?;
";
diff --git a/src/web/server/record/update_result_record.php b/src/web/server/record/update_result_record.php
index 0bb0bbe..6a8c000 100644
--- a/src/web/server/record/update_result_record.php
+++ b/src/web/server/record/update_result_record.php
@@ -31,7 +31,7 @@ if($prev_best_record_id === null || $prev_best_record_id < 0) {
// highest record is the highest record
$app_highest_record = get_app_highest_record($maestro_id, $app_id, $player_id);
-// echo "\napp_highest_record : $app_highest_record";
+echo "\napp_highest_record : $app_highest_record";
// echo "\nrecord : $record";
if($app_highest_record == null) {