From 30d142b395b39ac109ce116a4691256bea561e7f Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 24 Mar 2018 21:39:37 +0100 Subject: [PATCH] Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 93 bytes modified --- 21g30t1e75.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/21g30t1e75.js b/21g30t1e75.js index bcf4089..6ddc4ee 100644 --- a/21g30t1e75.js +++ b/21g30t1e75.js @@ -1138,6 +1138,13 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation throw new Error('wrong type of game object'); } + GameLib.Event.Emit( + GameLib.Event.PLAY_AUDIO, + { + name : 'Audio - Extend' + } + ); + var body = null; switch (gameObject.type) { @@ -1211,6 +1218,7 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation throw new Error('unhandled food type: ' + gameObject.type); } + /* if (orientation === GameLib.CustomCode.ORIENTATION_UP) { body.mesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;