Fix: remove define_variables.js

This commit is contained in:
2018-10-25 12:23:48 +09:00
parent ac5767ccfe
commit 69e76600d4
3 changed files with 19 additions and 17 deletions
@@ -1 +0,0 @@
let scoreManager = new ScoreManager();
+15 -11
View File
@@ -24,17 +24,23 @@ var Game = {
screenTopUI.makeBackButton( (function() { this.back(); }).bind(this) );
screenTopUI.makeFullScreenButton();
var scoreBoard = new ScoreBoard();
scoreManager.addOnChangeScoreListener( function(score) {
this.scoreManager = new ScoreManager();
this.scoreBoard = new ScoreBoard();
this.scoreManager.addOnChangeScoreListener(
(function(score) {
sessionStorageManager.setRecord(score);
scoreBoard.printScore(NumberUtil.numberWithCommas(score));
});
scoreManager.addOnChangeHighScoreListener( function(highScore) {
this.scoreBoard.printScore(NumberUtil.numberWithCommas(score));
}).bind(this)
);
this.scoreManager.addOnChangeHighScoreListener(
(function(highScore) {
// console.log(highScore);
// sessionStorageManager.setAppHighestRecord(highScore);
sessionStorageManager.setIsNewBestRecrd(true);
// screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());
});
// this.screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());
}).bind(this)
);
this.stageTimer = new StageTimer(
Game.GAME_TIME_SEC,
(function() {
@@ -125,7 +131,7 @@ var Game = {
this.card_characters[13] = 'soccer';
this.card_characters_count = this.card_characters.length;
this.cardCharacterIndexList = Phaser.ArrayUtils.numberArray(0, this.card_characters_count - 1);
console.log("cardCharacterIndexList : " + this.cardCharacterIndexList.length);
// console.log("cardCharacterIndexList : " + this.cardCharacterIndexList.length);
for(var i = 0; i < DudeCard.MAX_CARD_COLUMN_NO; i++){
for(var j = 0; j < DudeCard.MAX_CARD_ROW_NO; j++) {
@@ -205,7 +211,6 @@ var Game = {
},
setOpenCardColumnRow() {
console.log("setOpenCardColumnRow : " + this.playingStageNo);
switch(this.playingStageNo) {
case 1:
this.activatedCardColumnNo = 2;
@@ -405,7 +410,6 @@ var Game = {
},
clearOpenedTwoCards() {
console.log(this.openCardInfoIndex[0]);
var card1 = this.cards[this.openCardInfoIndex[0]];
this.resetOpenCardInfo(card1.getColumnNo(), card1.getRowNo());
this.reservedHideCard[0] = card1;
@@ -432,7 +436,7 @@ var Game = {
// this.addScore();
// this.updateScore();
scoreManager.plusScore(this.getScore());
this.scoreManager.plusScore(this.getScore());
// to do : check clear stage
this.clearedCardCount += 2;
-1
View File
@@ -34,7 +34,6 @@
<script src="../../game/lib/stage_timer.js"></script>
<!-- Space Invaders : source files -->
<script src="../../game/mouse/card_matching/define_variables.js"></script>
<script src="../../game/mouse/card_matching/loading.js"></script>
<script src="../../game/mouse/card_matching/dude_card.js"></script>