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");