|
|
@ -119,7 +119,7 @@ Q.Sprite.extend("Starbug",{
|
|
|
|
// end the game unless the enemy is hit on top
|
|
|
|
// end the game unless the enemy is hit on top
|
|
|
|
this.on("bump.left,bump.right,bump.bottom",function(collision) {
|
|
|
|
this.on("bump.left,bump.right,bump.bottom",function(collision) {
|
|
|
|
if(collision.obj.isA("Player")) {
|
|
|
|
if(collision.obj.isA("Player")) {
|
|
|
|
Q.stageScene("endGame",1, { label: "You Died" });
|
|
|
|
Q.stageScene("endGame",1, { label: "DU BIST TOT" });
|
|
|
|
collision.obj.destroy();
|
|
|
|
collision.obj.destroy();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|