Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 10 bytes modified
parent
30d142b395
commit
ef2d36ef43
|
@ -1115,8 +1115,14 @@ GameLib.CustomCode.prototype.initializeGrid = function() {
|
||||||
* @param position
|
* @param position
|
||||||
*/
|
*/
|
||||||
GameLib.CustomCode.prototype.explode = function(position) {
|
GameLib.CustomCode.prototype.explode = function(position) {
|
||||||
console.log('explode snake at position : ' + position.x + ', ' + position.y);
|
|
||||||
|
|
||||||
|
GameLib.Event.Emit(
|
||||||
|
GameLib.Event.PLAY_AUDIO,
|
||||||
|
{
|
||||||
|
name : 'Audio - Crashed'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
this.state.exploding = true;
|
this.state.exploding = true;
|
||||||
this.state.lives -= 1;
|
this.state.lives -= 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue