diff --git a/src/game/ranking/ranking.js b/src/game/ranking/ranking.js
index f8f0bd6..492f58e 100644
--- a/src/game/ranking/ranking.js
+++ b/src/game/ranking/ranking.js
@@ -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(),
diff --git a/src/game/result/history_board.js b/src/game/result/history_board.js
index 0cd3f46..62b89ac 100644
--- a/src/game/result/history_board.js
+++ b/src/game/result/history_board.js
@@ -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;
diff --git a/src/web/client/ranking.html b/src/web/client/ranking.html
index 4c7ec8c..16d1f3e 100644
--- a/src/web/client/ranking.html
+++ b/src/web/client/ranking.html
@@ -37,12 +37,12 @@
-
+
-
+
-
+
@@ -62,7 +62,7 @@
-
+
diff --git a/src/web/client/result.html b/src/web/client/result.html
index fe1f87d..3850d60 100644
--- a/src/web/client/result.html
+++ b/src/web/client/result.html
@@ -20,9 +20,9 @@
-
+
-
+
@@ -41,10 +41,10 @@
-
-
-
-
+
+
+
+
diff --git a/src/web/client/start.html b/src/web/client/start.html
index 7621704..f4c61dc 100644
--- a/src/web/client/start.html
+++ b/src/web/client/start.html
@@ -16,13 +16,13 @@
-
+
-
+
-
+
@@ -36,10 +36,10 @@
-
+
-
+