Add: ranking hour, day, month record php

This commit is contained in:
2018-05-18 09:52:58 +09:00
parent 8fe5c72987
commit 60bd151c92
18 changed files with 404 additions and 158 deletions
+8 -8
View File
@@ -80,18 +80,18 @@ class Start {
const CHART_HEIGHT = 120;
const style = { font: "24px Arial", fill: "#fff", align: "left", boundsAlignH: "center", boundsAlignV: "middle" };
let dateTime = new Date(date);
console.log(dateTime);
console.log((dateTime.getMonth() + 1) + "월 " + dateTime.getDate() + "일");
let monthDay = (dateTime.getMonth() + 1) + "월 " + dateTime.getDate() + "일";
let dateText = game.add.text(100 + index * CHART_GAP_PX, game.world.height - 140, monthDay, style);
let dateText = game.add.text(
100 + index * CHART_GAP_PX, game.world.height - 140,
StringUtil.printMonthDay(date), style
);
dateText.setTextBounds(0, 0, 100, 100);
dateText.stroke = "#333";
dateText.strokeThickness = 1;
let numberWithCommas = NumberUtil.numberWithCommas(Math.floor(score));
let scoreText = game.add.text(100 + index * CHART_GAP_PX, game.world.height - 300, numberWithCommas, style);
let scoreText = game.add.text(
100 + index * CHART_GAP_PX, game.world.height - 300,
StringUtil.getScoreTextWithUnit(score), style
);
scoreText.setTextBounds(0, 0, 100, 100);
scoreText.stroke = "#333";
scoreText.strokeThickness = 1;