Fix: remove define_variables.js
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
let scoreManager = new ScoreManager();
|
|
||||||
@@ -24,17 +24,23 @@ var Game = {
|
|||||||
screenTopUI.makeBackButton( (function() { this.back(); }).bind(this) );
|
screenTopUI.makeBackButton( (function() { this.back(); }).bind(this) );
|
||||||
screenTopUI.makeFullScreenButton();
|
screenTopUI.makeFullScreenButton();
|
||||||
|
|
||||||
var scoreBoard = new ScoreBoard();
|
this.scoreManager = new ScoreManager();
|
||||||
scoreManager.addOnChangeScoreListener( function(score) {
|
this.scoreBoard = new ScoreBoard();
|
||||||
sessionStorageManager.setRecord(score);
|
this.scoreManager.addOnChangeScoreListener(
|
||||||
scoreBoard.printScore(NumberUtil.numberWithCommas(score));
|
(function(score) {
|
||||||
});
|
sessionStorageManager.setRecord(score);
|
||||||
scoreManager.addOnChangeHighScoreListener( function(highScore) {
|
this.scoreBoard.printScore(NumberUtil.numberWithCommas(score));
|
||||||
// console.log(highScore);
|
}).bind(this)
|
||||||
// sessionStorageManager.setAppHighestRecord(highScore);
|
);
|
||||||
sessionStorageManager.setIsNewBestRecrd(true);
|
this.scoreManager.addOnChangeHighScoreListener(
|
||||||
// screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());
|
(function(highScore) {
|
||||||
});
|
// console.log(highScore);
|
||||||
|
// sessionStorageManager.setAppHighestRecord(highScore);
|
||||||
|
sessionStorageManager.setIsNewBestRecrd(true);
|
||||||
|
// this.screenBottomUI.printLeftTextWithAppHighestRecord(sessionStorageManager.getAppHighestRecord());
|
||||||
|
}).bind(this)
|
||||||
|
);
|
||||||
|
|
||||||
this.stageTimer = new StageTimer(
|
this.stageTimer = new StageTimer(
|
||||||
Game.GAME_TIME_SEC,
|
Game.GAME_TIME_SEC,
|
||||||
(function() {
|
(function() {
|
||||||
@@ -125,7 +131,7 @@ var Game = {
|
|||||||
this.card_characters[13] = 'soccer';
|
this.card_characters[13] = 'soccer';
|
||||||
this.card_characters_count = this.card_characters.length;
|
this.card_characters_count = this.card_characters.length;
|
||||||
this.cardCharacterIndexList = Phaser.ArrayUtils.numberArray(0, this.card_characters_count - 1);
|
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 i = 0; i < DudeCard.MAX_CARD_COLUMN_NO; i++){
|
||||||
for(var j = 0; j < DudeCard.MAX_CARD_ROW_NO; j++) {
|
for(var j = 0; j < DudeCard.MAX_CARD_ROW_NO; j++) {
|
||||||
@@ -205,7 +211,6 @@ var Game = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setOpenCardColumnRow() {
|
setOpenCardColumnRow() {
|
||||||
console.log("setOpenCardColumnRow : " + this.playingStageNo);
|
|
||||||
switch(this.playingStageNo) {
|
switch(this.playingStageNo) {
|
||||||
case 1:
|
case 1:
|
||||||
this.activatedCardColumnNo = 2;
|
this.activatedCardColumnNo = 2;
|
||||||
@@ -405,7 +410,6 @@ var Game = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
clearOpenedTwoCards() {
|
clearOpenedTwoCards() {
|
||||||
console.log(this.openCardInfoIndex[0]);
|
|
||||||
var card1 = this.cards[this.openCardInfoIndex[0]];
|
var card1 = this.cards[this.openCardInfoIndex[0]];
|
||||||
this.resetOpenCardInfo(card1.getColumnNo(), card1.getRowNo());
|
this.resetOpenCardInfo(card1.getColumnNo(), card1.getRowNo());
|
||||||
this.reservedHideCard[0] = card1;
|
this.reservedHideCard[0] = card1;
|
||||||
@@ -432,7 +436,7 @@ var Game = {
|
|||||||
|
|
||||||
// this.addScore();
|
// this.addScore();
|
||||||
// this.updateScore();
|
// this.updateScore();
|
||||||
scoreManager.plusScore(this.getScore());
|
this.scoreManager.plusScore(this.getScore());
|
||||||
|
|
||||||
// to do : check clear stage
|
// to do : check clear stage
|
||||||
this.clearedCardCount += 2;
|
this.clearedCardCount += 2;
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
<script src="../../game/lib/stage_timer.js"></script>
|
<script src="../../game/lib/stage_timer.js"></script>
|
||||||
|
|
||||||
<!-- Space Invaders : source files -->
|
<!-- 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/loading.js"></script>
|
||||||
|
|
||||||
<script src="../../game/mouse/card_matching/dude_card.js"></script>
|
<script src="../../game/mouse/card_matching/dude_card.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user