Skip to content

Commit

Permalink
see #403
Browse files Browse the repository at this point in the history
  • Loading branch information
coderatwork committed Oct 31, 2013
1 parent 612b14e commit a3ed9cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/bonusFrenzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ BonusFrenzy.prototype.startMoving = function(){
if(bonusFrenzy.sizeOfRandomCreatureMap()==0){
clearInterval(bonusFrenzy.intervalHandle);
console.log('score : '+bonusFrenzy.score);
//bonusFrenzy.board.level.won()
layer.clearRect(bonusFrenzy.currentX, bonusFrenzy.currentY, Board.TILE_WIDTH, Board.TILE_HEIGHT);
layer.drawImage(board.level.gameImages.tile_regular, bonusFrenzy.currentX, bonusFrenzy.currentY, Board.TILE_WIDTH, Board.TILE_HEIGHT);
bonusFrenzy.board.setComplete();
}
} //function fly()
Expand Down
1 change: 1 addition & 0 deletions js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,7 @@ Board.getVerticalPointsSets = function(tileSetsToBeRemoved) {

Board.prototype.setComplete = function() {
var levelHighestScore, timedMode;
this.level.levelCompleted = true;
if(!this.bonusFrenzy){
this.level.cleanup(true);
this.bonusFrenzy = new BonusFrenzy(this);
Expand Down

0 comments on commit a3ed9cb

Please sign in to comment.