Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 465 bytes modified
parent
93d9dccbc5
commit
3cb7356274
|
@ -332,8 +332,22 @@ GameLib.CustomCode.prototype.advanceSnake = function(delta) {
|
|||
body.orientation = backup.orientation;
|
||||
|
||||
body.backupMesh = body.mesh;
|
||||
|
||||
body.backupMesh.position.y -= 0.5;
|
||||
|
||||
if (temp.orientation === GameLib.CustomCode.ORIENTATION_UP) {
|
||||
body.backupMesh.position.y -= 0.5;
|
||||
}
|
||||
|
||||
if (temp.orientation === GameLib.CustomCode.ORIENTATION_DOWN) {
|
||||
body.backupMesh.position.y += 0.5;
|
||||
}
|
||||
|
||||
if (temp.orientation === GameLib.CustomCode.ORIENTATION_LEFT) {
|
||||
body.backupMesh.position.x += 0.5;
|
||||
}
|
||||
|
||||
if (temp.orientation === GameLib.CustomCode.ORIENTATION_RIGHT) {
|
||||
body.backupMesh.position.x -= 0.5;
|
||||
}
|
||||
|
||||
//body.backupMesh.visible = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue