Add: requestTodayBestRecord, updateTodayBestRecord
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user