diff --git a/images-src/nochmal.xcf b/images-src/nochmal.xcf new file mode 100644 index 0000000..41ca24f Binary files /dev/null and b/images-src/nochmal.xcf differ diff --git a/images/nochmal.png b/images/nochmal.png new file mode 100644 index 0000000..ab2884b Binary files /dev/null and b/images/nochmal.png differ diff --git a/platformer.js b/platformer.js index 414ee2a..2a052df 100644 --- a/platformer.js +++ b/platformer.js @@ -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");