neingeist
/
cosmos
Archived
1
0
Fork 0

remove label on the play again dialog

master
neingeist 11 years ago
parent a0b62367e9
commit b44efcb65b

@ -78,7 +78,7 @@ Q.Sprite.extend("Neingeist",{
// end the game unless the enemy is hit on top
this.on("bump.left,bump.right,bump.bottom",function(collision) {
if(collision.obj.isA("Player")) {
Q.stageScene("endGame",1, { label: "DU BIST TOT" });
Q.stageScene("endGame", 1);
collision.obj.destroy();
}
});
@ -109,7 +109,7 @@ Q.Sprite.extend("Starbug",{
// end the game unless the enemy is hit on top
this.on("bump.left,bump.right,bump.bottom",function(collision) {
if(collision.obj.isA("Player")) {
Q.stageScene("endGame",1, { label: "DU BIST TOT" });
Q.stageScene("endGame", 1);
collision.obj.destroy();
}
});
@ -140,7 +140,7 @@ Q.Sprite.extend("Martin",{
// end the game unless the enemy is hit on top
this.on("bump.left,bump.right,bump.bottom",function(collision) {
if(collision.obj.isA("Player")) {
Q.stageScene("endGame",1, { label: "DU BIST TOT" });
Q.stageScene("endGame", 1);
collision.obj.destroy();
}
});
@ -188,8 +188,7 @@ Q.scene("level1",function(stage) {
});
// To display a game over / game won popup box,
// create a endGame scene that takes in a `label` option
// to control the displayed message.
// create a endGame scene
Q.scene('endGame',function(stage) {
var container = stage.insert(new Q.UI.Container({
x: Q.width/2, y: Q.height/2, fill: "rgba(0,0,0,0.5)"
@ -198,8 +197,6 @@ Q.scene('endGame',function(stage) {
var button = container.insert(new Q.UI.Button({ x: 0, y: 0, fill: "#CCCCCC",
label: "NOCHMAL" }))
var label = container.insert(new Q.UI.Text({x:10, y: -10 - button.p.h,
label: stage.options.label }));
// When the button is clicked, clear all the stages
// and restart the game.
button.on("click",function() {