Add: requestTodayBestRecord, updateTodayBestRecord

This commit is contained in:
2018-06-05 16:32:57 +09:00
parent 5f53360871
commit feb95d461b
6 changed files with 219 additions and 35 deletions
+11 -1
View File
@@ -8,7 +8,7 @@ class Result {
}
create() {
this.historyRecordManager = new HistoryRecordManager();
this.dbConnectManager = new DBConnectManager();
this.game.stage.backgroundColor = '#4d4d4d';
this.chartGraphics = game.add.graphics(100, game.world.height - 120);
@@ -24,6 +24,8 @@ class Result {
// contents
this.printRecord();
this.uploadRecord();
this.makeStartButton();
let recordBoard = new RecordBoard();
@@ -63,7 +65,15 @@ class Result {
// .setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2);
bestRecordText.stroke = "#333";
bestRecordText.strokeThickness = 5;
}
uploadRecord() {
this.dbConnectManager.updateTodayBestRecord(
sessionStorageManager.maestroID,
sessionStorageManager.playerUserID,
sessionStorageManager.playingAppID,
sessionStorageManager.record
);
}
makeStartButton() {