Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 81 bytes modified
parent
ddb62439c8
commit
937b16a9ef
|
@ -1274,15 +1274,6 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
var temp = null;
|
var temp = null;
|
||||||
var advanced = false;
|
var advanced = false;
|
||||||
|
|
||||||
if (this.state.overrideOrientation) {
|
|
||||||
|
|
||||||
this.backupPreviousOrientation = this.backupOrientation;
|
|
||||||
|
|
||||||
this.backupOrientation = this.state.orientation;
|
|
||||||
|
|
||||||
this.state.overrideOrientation = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.snake.map(
|
this.snake.map(
|
||||||
function(body, index) {
|
function(body, index) {
|
||||||
|
|
||||||
|
@ -1345,6 +1336,10 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (this.state.overrideOrientation) {
|
||||||
|
this.backupPreviousOrientation = this.state.orientation;
|
||||||
|
}
|
||||||
|
|
||||||
var gameObject = this.grid[body.position.x][body.position.y];
|
var gameObject = this.grid[body.position.x][body.position.y];
|
||||||
|
|
||||||
switch (gameObject.objectType) {
|
switch (gameObject.objectType) {
|
||||||
|
|
Loading…
Reference in New Issue