Archived
1
0
Fork 0

make "again" button prettier

This commit is contained in:
neingeist 2013-11-25 16:37:10 +01:00
parent b74fbc85a3
commit 9d1813f6cd
3 changed files with 2 additions and 3 deletions

BIN
images-src/nochmal.xcf Normal file

Binary file not shown.

BIN
images/nochmal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

View file

@ -120,8 +120,7 @@ Q.scene('endGame',function(stage) {
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",
label: "NOCHMAL" }))
var button = container.insert(new Q.UI.Button({ x: 0, y: 0, asset: "nochmal.png" }))
button.on("click",function() {
Q.clearStages();
@ -131,7 +130,7 @@ Q.scene('endGame',function(stage) {
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.compileSheets("sprites.png","sprites.json");