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