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

beta.r3js.org
-=yb4f310 2018-03-24 21:39:37 +01:00
parent 8efb22cf33
commit 30d142b395
1 changed files with 8 additions and 0 deletions

View File

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