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

beta.r3js.org
-=yb4f310 2018-03-23 17:25:48 +01:00
parent ddb62439c8
commit 937b16a9ef
1 changed files with 4 additions and 9 deletions

View File

@ -1273,16 +1273,7 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
var backup = null;
var temp = null;
var advanced = false;
if (this.state.overrideOrientation) {
this.backupPreviousOrientation = this.backupOrientation;
this.backupOrientation = this.state.orientation;
this.state.overrideOrientation = false;
}
this.snake.map(
function(body, index) {
@ -1345,6 +1336,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
} else {
if (this.state.overrideOrientation) {
this.backupPreviousOrientation = this.state.orientation;
}
var gameObject = this.grid[body.position.x][body.position.y];
switch (gameObject.objectType) {