better labels
This commit is contained in:
parent
d1c1bf6c35
commit
75868947b1
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ Q.Sprite.extend("Neingeist",{
|
||||||
// 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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -175,7 +175,7 @@ Q.scene('endGame',function(stage) {
|
||||||
|
|
||||||
|
|
||||||
var button = container.insert(new Q.UI.Button({ x: 0, y: 0, fill: "#CCCCCC",
|
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,
|
var label = container.insert(new Q.UI.Text({x:10, y: -10 - button.p.h,
|
||||||
label: stage.options.label }));
|
label: stage.options.label }));
|
||||||
// When the button is clicked, clear all the stages
|
// When the button is clicked, clear all the stages
|
||||||
|
|
Reference in a new issue