Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 93 bytes modified
parent
f277b0308e
commit
df47fa0df5
|
@ -1517,7 +1517,7 @@ GameLib.CustomCode.prototype.restore = function() {
|
||||||
/**
|
/**
|
||||||
* Move the snake forward and do collision detection
|
* Move the snake forward and do collision detection
|
||||||
* @type {function(this:snakeEntityLoaded)}
|
* @type {function(this:snakeEntityLoaded)}
|
||||||
*/
|
*/Move
|
||||||
GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
|
|
||||||
if (this.state.exploding) {
|
if (this.state.exploding) {
|
||||||
|
@ -1535,7 +1535,14 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
||||||
var backup = null;
|
var backup = null;
|
||||||
var temp = null;
|
var temp = null;
|
||||||
var advanced = false;
|
var advanced = false;
|
||||||
|
|
||||||
|
GameLib.Event.Emit(
|
||||||
|
GameLib.Event.PLAY_AUDIO,
|
||||||
|
{
|
||||||
|
name : 'Audio - Move'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
this.snake.map(
|
this.snake.map(
|
||||||
function(body, index) {
|
function(body, index) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue