typos in files naming and templates
Closed this issue · 1 comments
diff --git a/public/javascripts/game/canvasPainter.js b/public/javascripts/game/canvasPainter.js
index 836f5e4..62c6350 100644
--- a/public/javascripts/game/canvasPainter.js
+++ b/public/javascripts/game/canvasPainter.js
@@ -1,7 +1,7 @@
/*
- Class to manage the canvas. Draw players, backgrounds, etc...
*/
-define(['parallax', 'backgroundressources', '../../sharedConstants'], function (Parallax, bgRessources, Const) {
+define(['parallax', 'backgroundRessources', '../../sharedConstants'], function (Parallax, bgRessources, Const) {
var HEIGHT_BETWEEN_PIPES = 150;
var NB_RESSOURCES_TO_LOAD = 2;
@@ -127,4 +127,4 @@ define(['parallax', 'backgroundressources', '../../sharedConstants'], function (
};
return (that);
-});
\ No newline at end of file
+});
diff --git a/public/javascripts/game/playerEntity.js b/public/javascripts/game/playerEntity.js
index 5376141..d66e5a0 100644
--- a/public/javascripts/game/playerEntity.js
+++ b/public/javascripts/game/playerEntity.js
@@ -5,7 +5,7 @@ define(['../../sharedConstants'], function (Const) {
var enumPlayerState = {
Unset: 1,
-
WaintingInLobby: 2,
-
WaitingInLobby: 2,
Playing: 3,
Died: 4
};
@@ -43,7 +43,7 @@ define(['../../sharedConstants'], function (Const) {
}
else {
// Finally draw bird -
if (this._serverInfos.state == enumPlayerState.WaintingInLobby) {
-
if (this._serverInfos.state == enumPlayerState.WaitingInLobby) {
ctx.drawImage(spriteList[this._serverInfos.color], 0, 0, SPRITE_BIRD_WIDTH, SPRITE_BIRD_HEIGHT, this._serverInfos.posX, this._serverInfos.posY, Const.BIRD_WIDTH, Const.BIRD_HEIGHT);
}
// If he is ready or in game, animate the bird !
@@ -75,11 +75,11 @@ define(['../../sharedConstants'], function (Const) {
};Player.prototype.updateReadyState = function (readyState) {
-
this._serverInfos.state = (readyState === true) ? enumPlayerState.Ready : enumPlayerState.WaintingInLobby;
-
this._serverInfos.state = (readyState === true) ? enumPlayerState.Ready : enumPlayerState.WaitingInLobby;
console.log(this._serverInfos.nick + ' is ' + ((this._serverInfos.state == enumPlayerState.Ready) ? 'ready !': 'not yet ready'));
};
}
return (Player);
-});
\ No newline at end of file
+});
diff --git a/views/birds.jade b/views/birds.jade
index 2960754..3a6f6bc 100644
--- a/views/birds.jade
+++ b/views/birds.jade
@@ -1,8 +1,8 @@
doctype html
html
head
- script(rel='stylesheet', src=wsAddress + '/socket.io/socket.io.js').
- script(type='text/javascript', src='/socket.io/socket.io.js').
Fixed in last commit. Thanks for your help ! 😄