===================================================================
--- original.js
+++ change.js
@@ -30,8 +30,18 @@
anchorX: 0.5,
anchorY: 0.5
});
playerHead.y = -20;
+ var playerLegs = self.attachAsset('playerLegs', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ playerLegs.y = 50;
+ var playerArms = self.attachAsset('playerArms', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ playerArms.y = 20;
self.speed = 5;
self.update = function () {
// Player update logic
};