neingeist
/
cosmos
Archived
1
0
Fork 0

make "again" button prettier

master
neingeist 11 years ago
parent b74fbc85a3
commit 9d1813f6cd

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

@ -120,8 +120,7 @@ Q.scene('endGame',function(stage) {
x: Q.width/2, y: Q.height/2, fill: "rgba(0,0,0,0.5)" x: Q.width/2, y: Q.height/2, fill: "rgba(0,0,0,0.5)"
})); }));
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, asset: "nochmal.png" }))
label: "NOCHMAL" }))
button.on("click",function() { button.on("click",function() {
Q.clearStages(); Q.clearStages();
@ -131,7 +130,7 @@ Q.scene('endGame',function(stage) {
container.fit(16); container.fit(16);
}); });
Q.load("sprites.png, sprites.json, level.json, tiles.png, background.png", function() { Q.load("sprites.png, sprites.json, level.json, tiles.png, background.png, nochmal.png", function() {
Q.sheet("tiles","tiles.png", { tilew: 24, tileh: 24 }); Q.sheet("tiles","tiles.png", { tilew: 24, tileh: 24 });
Q.compileSheets("sprites.png","sprites.json"); Q.compileSheets("sprites.png","sprites.json");