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;