Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeen committed Feb 26, 2012
1 parent 0486049 commit b67d2ee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion css/game.css
Expand Up @@ -192,7 +192,7 @@
font-family: 'Over the Rainbow', cursive;
}

.DTD.youWin {
.youWin {
font-size: 40px;
width: 710px;
position: fixed;
Expand Down
2 changes: 1 addition & 1 deletion js/_player.js
Expand Up @@ -37,7 +37,7 @@
if(this._actualLife <= 0) {
DTD.youLoose();
this.delay(function() {
$(".DTD.youWin").remove();
$(".youWin").remove();
DTD.removeUI();
if(DTD.gameType == "story") {
DTD.loadScene("loose");
Expand Down
12 changes: 6 additions & 6 deletions js/_rounds.js
Expand Up @@ -40,11 +40,11 @@


DTD.youWin = function() {
$("body").append('<div class="DTD.youWin">You WIN !</div>');
$("body").append('<div class=".youWin">You WIN !</div>');
};

DTD.youLoose = function() {
$("body").append('<div class="DTD.youWin">You LOOSE !</div>');
$("body").append('<div class=".youWin">You LOOSE !</div>');
};
function Round() {
this.waves = [];
Expand Down Expand Up @@ -164,7 +164,7 @@
this.addComponent("RealDelay");
this._start = 0;
this.waves = [];
this._DTD.monsterCount = 0;
this._monsterCount = 0;
this._monstersDied = 0;
this._played = false;
this._roundPauseBuffer = 0;
Expand Down Expand Up @@ -199,12 +199,12 @@
}
});
} else {
if(this._DTD.monsterCount == this._monstersDied) {
if(this._monsterCount == this._monstersDied) {
this._played = false;
this.trigger("Ended");
DTD.youWin();
this.delay(function() {
$(".DTD.youWin").remove();
$(".youWin").remove();
DTD.removeUI();
if(storage.level.get() > 6) {
storage.level.set(1);
Expand Down Expand Up @@ -238,7 +238,7 @@
play : function() {
var that = this;
var lastWave = _.last(this.waves);
this._DTD.monsterCount = DTD.monsterCount(this.waves);
this._monsterCount = DTD.monsterCount(this.waves);
this._monstersDied = 0;
this._played = true;
this._duration = lastWave.at * 1000;
Expand Down
2 changes: 1 addition & 1 deletion js/_utils.js
Expand Up @@ -110,7 +110,7 @@
}
}
});
return DTD.monsterCount;
return monsterCount;
};

DTD.rolling = function(percent) {
Expand Down
2 changes: 1 addition & 1 deletion js/game.js
Expand Up @@ -68,7 +68,7 @@

$("#menuPauseBackToMain").live("click", function() {
Crafty.pause();
$(".DTD.youWin").remove();
$(".youWin").remove();
DTD.removeUI();
Crafty.scene("titleScreen");
});
Expand Down

0 comments on commit b67d2ee

Please sign in to comment.