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

beta.r3js.org
-=yb4f310 2018-03-20 14:36:44 +01:00
parent 4678fb3f59
commit ec65dfb313
1 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ GameLib.CustomCode.SnakeBody.prototype.advance = function(orientation, flip) {
switch (orientation) {
case GameLib.CustomCode.ORIENTATION_UP :
if ((this.position.y + 1) > GameLib.CustomCode.GRID_HEIGHT) {
if ((this.position.y + 1) >= GameLib.CustomCode.GRID_HEIGHT) {
crash = true;
} else {
this.position.y += 1;
@ -273,7 +273,7 @@ GameLib.CustomCode.SnakeBody.prototype.advance = function(orientation, flip) {
}
break;
case GameLib.CustomCode.ORIENTATION_RIGHT :
if ((this.position.x + 1) > GameLib.CustomCode.GRID_WIDTH) {
if ((this.position.x + 1) >= GameLib.CustomCode.GRID_WIDTH) {
crash = true;
} else {
this.position.x += 1;