Fix: RecordUtil.getRecordValueWithUnit

This commit is contained in:
2018-12-03 01:14:10 +09:00
parent eb61871526
commit 123a715bac
15 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -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;
+4 -2
View File
@@ -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() {