===================================================================
--- original.js
+++ change.js
@@ -20,12 +20,18 @@
//<Assets used in the game will automatically appear here>
// Define a Player class
var Player = Container.expand(function () {
var self = Container.call(this);
- var playerGraphics = self.attachAsset('player', {
+ var playerBody = self.attachAsset('playerBody', {
anchorX: 0.5,
anchorY: 0.5
});
+ playerBody.y = 10;
+ var playerHead = self.attachAsset('playerHead', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ playerHead.y = -20;
self.speed = 5;
self.update = function () {
// Player update logic
};