neingeist
/
cosmos
Archived
1
0
Fork 0

let rocket fly

master
neingeist 11 years ago
parent 3ae1491083
commit fef37df811

@ -51,6 +51,11 @@ Q.Sprite.extend("Player",{
// Check the collision, if it's the rocket, you win! // Check the collision, if it's the rocket, you win!
if(collision.obj.isA("Rocket")) { if(collision.obj.isA("Rocket")) {
var rocket = collision.obj;
rocket.add("tween");
rocket.animate({ x: 100, y: -500, angle: 360 });
this.destroy(); this.destroy();
$("#einladung").center(); $("#einladung").center();
$("#einladung").show("slow"); $("#einladung").show("slow");