Add: ranking hour, day, month record php
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user