Fix: update file name tag, print sample ranking

This commit is contained in:
2019-06-12 08:32:50 +09:00
parent 976dc1a4ac
commit 9ecb633996
5 changed files with 53 additions and 20 deletions
+34
View File
@@ -289,9 +289,43 @@ var Ranking = {
return dateTimeType;
},
getRndInteger: function(min, max) {
return Math.floor(Math.random() * (max - min + 1) ) + min;
},
getSampleRankingRecord: function() {
var rankingRecordManager = new RankingRecordManager();
var playerNameList = [
"김가람", "강가온", "고길", "한나라", "강나래",
"오나예", "박노아", "부노을", "한다은", "최두루",
"신두나", "최해솔", "김모든", "설보라", "민모든",
"이보람", "이빛길", "정새론", "한새얀", "채세련",
"태슬예", "진승아", "강시원", "김아롱", "박알찬",
"김다은", "황세련", "강원", "지소은", "남궁민"
];
var shuffleList = Phaser.ArrayUtils.shuffle(playerNameList);
for(var i = 0; i < 30; i++) {
var record = new RankingRecord(
i + 1, // rank
i + 1, // playerID
shuffleList[i], // playerName
this.getRndInteger(1000 - (i + 1) * 20, 1000 - (i + 1) * 10) // record
);
rankingRecordManager.push(record);
}
return rankingRecordManager;
},
getRecordToRankingServer: function() {
this.recordArray == [];
if(isExperiencePlayerAccount()) {
this.showRanking(this.getSampleRankingRecord());
return;
}
this.dbConnectManager.requestRanking(
this.getDateTimeType(),
sessionStorageManager.getMaestroID(),
+4 -5
View File
@@ -1,9 +1,4 @@
function HistoryBoard(dataType) {
if(dataType === RecordBoard.TYPE_SAMPLE) {
this.printSample();
return;
}
var rankingTextOffsetY = game.world.height / 2 + 105;
this.historyTexts = new Array();
for(var i = 0; i < RankingBoard.RANK_COUNT; i++) {
@@ -11,6 +6,10 @@ function HistoryBoard(dataType) {
this.historyTexts[i] = new HistoryText(80, posY);
}
if(dataType === RecordBoard.TYPE_SAMPLE) {
this.printSample();
return;
}
this.todayBestRecord = 0;
+4 -4
View File
@@ -37,12 +37,12 @@
<script src="../../game/lib/session_storage_manager.js"></script>
<script src="../../game/lib/score_manager.js"></script>
<script src="../../game/lib/heart_manager.js"></script>
<script src="../../game/lib/global/global_variables.js?update_date=191224"></script>
<script src="../../game/lib/global/global_variables.js?update_date=190608"></script>
<!-- library source files -->
<script src="../../game/lib/util/date_util.js"></script>
<script src="../../game/lib/util/date_util.js?update_date=190608"></script>
<script src="../../game/lib/util/number_util.js"></script>
<script src="../../game/lib/util/string_util.js"></script>
<script src="../../game/lib/util/string_util.js?update_date=190608"></script>
<script src="../../game/lib/util/record_util.js"></script>
<script src="../../game/lib/text/input_type_text.js?update_date=191224"></script>
@@ -62,7 +62,7 @@
<!-- Ranking : source files -->
<script src="../../game/ranking/ranking.js"></script>
<script src="../../game/ranking/ranking.js?update_date=190608"></script>
<script src="../../game/ranking/main.js"></script>
+6 -6
View File
@@ -20,9 +20,9 @@
<!-- library source files -->
<script src="../../game/lib/util/number_util.js"></script>
<script src="../../game/lib/util/string_util.js"></script>
<script src="../../game/lib/util/string_util.js?update_date=190608"></script>
<script src="../../game/lib/util/record_util.js"></script>
<script src="../../game/lib/util/date_util.js"></script>
<script src="../../game/lib/util/date_util.js?update_date=190608"></script>
<script src="../../game/lib/text/input_type_text.js?update_date=191224"></script>
<script src="../../game/lib/text/announce_box.js?update_date=191224"></script>
@@ -41,10 +41,10 @@
<script src="../../game/typing/lib/animal.js?update_date=191224"></script>
<!-- source files -->
<script src="../../game/result/history_board.js"></script>
<script src="../../game/result/ranking_board.js"></script>
<script src="../../game/result/record_board.js"></script>
<script src="../../game/result/result.js?update_date=190510"></script>
<script src="../../game/result/history_board.js?update_date=190608"></script>
<script src="../../game/result/ranking_board.js?update_date=190608"></script>
<script src="../../game/result/record_board.js?update_date=190608"></script>
<script src="../../game/result/result.js?update_date=190608"></script>
<script src="../../game/result/main.js"></script>
+5 -5
View File
@@ -16,13 +16,13 @@
<!-- global source files -->
<script src="../../game/lib/session_storage_manager.js"></script>
<script src="../../game/lib/global/global_variables.js?update_date=191224"></script>
<script src="../../game/lib/global/global_variables.js?update_date=190608"></script>
<!-- library source files -->
<script src="../../game/lib/util/number_util.js"></script>
<script src="../../game/lib/util/string_util.js"></script>
<script src="../../game/lib/util/string_util.js?update_date=190608"></script>
<script src="../../game/lib/util/record_util.js"></script>
<script src="../../game/lib/util/date_util.js"></script>
<script src="../../game/lib/util/date_util.js?update_date=190608"></script>
<script src="../../game/lib/text/input_type_text.js?update_date=191224"></script>
<script src="../../game/lib/text/announce_box.js?update_date=191224"></script>
@@ -36,10 +36,10 @@
<script src="../../game/lib/button/round_rect_button.js"></script>
<script src="../../game/lib/button/back_button.js"></script>
<script src="../../game/lib/button/fullscreen_button.js"></script>
<script src="../../game/lib/chart.js"></script>
<script src="../../game/lib/chart.js?update_date=190608"></script>
<!-- source files -->
<script src="../../game/start/start.js"></script>
<script src="../../game/start/start.js?update_date=190608"></script>
<script src="../../game/start/main.js"></script>