From b74fbc85a3203384d8509ea2119ebdbbd5595b0a Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 25 Nov 2013 13:11:44 +0100 Subject: [PATCH] add borken code to follow rocket --- platformer.js | 4 ++++ 1 file changed, 4 insertions(+) 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();