diff --git a/platformer.js b/platformer.js index ed129f8..414ee2a 100644 --- a/platformer.js +++ b/platformer.js @@ -27,6 +27,10 @@ Q.Sprite.extend("Player",{ rocket.add("tween"); rocket.animate({ x: 100, y: -500, angle: 360 }); + // FIXME following the rocket does not work + Q.stage().unfollow(); + Q.stage().viewport.follow(rocket); + // the player disappears this.destroy();