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

beta.r3js.org
-=yb4f310 2018-03-24 21:43:23 +01:00
parent 30d142b395
commit ef2d36ef43
1 changed files with 7 additions and 1 deletions

View File

@ -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;