Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 93 bytes modified
parent
8efb22cf33
commit
30d142b395
|
@ -1138,6 +1138,13 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation
|
||||||
throw new Error('wrong type of game object');
|
throw new Error('wrong type of game object');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GameLib.Event.Emit(
|
||||||
|
GameLib.Event.PLAY_AUDIO,
|
||||||
|
{
|
||||||
|
name : 'Audio - Extend'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
var body = null;
|
var body = null;
|
||||||
|
|
||||||
switch (gameObject.type) {
|
switch (gameObject.type) {
|
||||||
|
@ -1211,6 +1218,7 @@ GameLib.CustomCode.prototype.extend = function(gameObject, position, orientation
|
||||||
throw new Error('unhandled food type: ' + gameObject.type);
|
throw new Error('unhandled food type: ' + gameObject.type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
if (orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
||||||
body.mesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
|
body.mesh.position.y -= 0.5 * GameLib.CustomCode.BODY_SCALE_Y;
|
||||||
|
|
Loading…
Reference in New Issue