From fef37df8113973196d95b89df53dbe9db84c186d Mon Sep 17 00:00:00 2001 From: neingeist Date: Mon, 25 Nov 2013 01:47:45 +0100 Subject: [PATCH] let rocket fly --- platformer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platformer.js b/platformer.js index c35cc20..67cac70 100644 --- a/platformer.js +++ b/platformer.js @@ -51,6 +51,11 @@ Q.Sprite.extend("Player",{ // Check the collision, if it's the rocket, you win! if(collision.obj.isA("Rocket")) { + var rocket = collision.obj; + + rocket.add("tween"); + rocket.animate({ x: 100, y: -500, angle: 360 }); + this.destroy(); $("#einladung").center(); $("#einladung").show("slow");