Archived
1
0
Fork 0

better labels

This commit is contained in:
neingeist 2013-11-25 02:27:10 +01:00
parent d1c1bf6c35
commit 75868947b1

View file

@ -87,7 +87,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: "You Died" });
Q.stageScene("endGame",1, { label: "DU BIST TOT" });
collision.obj.destroy();
}
});
@ -175,7 +175,7 @@ Q.scene('endGame',function(stage) {
var button = container.insert(new Q.UI.Button({ x: 0, y: 0, fill: "#CCCCCC",
label: "Play Again" }))
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