Add: medals and new high score particle

This commit is contained in:
2018-09-12 09:08:04 +09:00
parent d458cedf7a
commit f38e779317
8 changed files with 107 additions and 21 deletions
+10
View File
@@ -9,6 +9,8 @@ class HistoryBoard {
return;
}
this.todayBestRecord = 0;
this.dbConnectManager = new DBConnectManager();
let arrayTabStyle = { font: "20px Arial", fill: "#fff", align: "left", tabs: [ 40, 80, 120 ] };
@@ -32,6 +34,9 @@ class HistoryBoard {
for(let i = 0; i < historyRecordManager.count; i++) {
let data = historyRecordManager.getAt(i);
this.printRecord(i, data.date, data.bestRecord);
if(date == data.date)
this.todayBestRecord = data.bestRecord;
}
}
);
@@ -98,4 +103,9 @@ class HistoryBoard {
this.printRecord(5, DateUtil.getYYYYMMDD(this.calcDate(15)), 840);
this.printRecord(6, DateUtil.getYYYYMMDD(this.calcDate(20)), 760);
}
todayBestRecord() {
return this.todayBestRecord;
}
}