Add: RankingRecordManager

This commit is contained in:
2018-05-17 12:05:21 +09:00
parent 0f623e954c
commit 2c1b928554
11 changed files with 224 additions and 80 deletions
+10 -6
View File
@@ -7,6 +7,7 @@ class RecordBoard {
this.chartGraphics = game.add.graphics(0, 0);
this.printRecordBoardHeader();
this.printSeperator();
let historyBoard = new HistoryBoard();
let rankingBoard = new RankingBoard();
@@ -33,12 +34,6 @@ class RecordBoard {
posX = 780;
this.printHeader(posX, posY, "이달의 순위", style);
posX = 300;
posY = 480;
this.chartGraphics.lineStyle(3, 0x444444, 1);
this.chartGraphics.moveTo(posX, posY);
this.chartGraphics.lineTo(posX, posY + 200);
}
printHeader(x, y, title, style) {
@@ -47,6 +42,15 @@ class RecordBoard {
.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
}
printSeperator() {
const posX = 300;
const posY = 480;
this.chartGraphics.lineStyle(3, 0x444444, 1);
this.chartGraphics.moveTo(posX, posY);
this.chartGraphics.lineTo(posX, posY + 200);
}
}
RecordBoard.HEADER_BAR_HEIGHT_PX = 60;