Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 189 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 15:31:25 +01:00
parent 7429de0943
commit d510bc9cee
1 changed files with 29 additions and 20 deletions

View File

@ -832,11 +832,20 @@ GameLib.CustomCode.prototype.createFood = function(delta) {
GameLib.CustomCode.prototype.gameOver = function(won) {
this.state.gameOver = true;
if (won) {
this.state.message = {
text : "GAME OVER",
x : 127,
y : 256
text: "YOU WON!",
x: 127,
y: 256
};
} else {
this.state.message = {
text: "GAME OVER",
x: 127,
y: 256
};
}
this.displayHUD();
}.bind(this)