User prompt
Move endscreen title 100 pixels more, and so the rest of the endscreen elelments
Code edit (6 edits merged)
Please save this source code
User prompt
lets add a background asset for that covers all the text in the endscreen, from congratulations to the note
User prompt
use resultsbg instead of frame for the endscreen
Code edit (14 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -572,9 +572,9 @@
fill: 0xffffff
});
playTimeText.anchor.set(0.5, 0);
playTimeText.x = GAME_WIDTH / 2;
- playTimeText.y = congratsText.y + 300;
+ playTimeText.y = congratsText.y + 200;
game.addChild(playTimeText);
var lastRunText = new Text2('Last Run Time: ' + lastRunTime + ' seconds', {
size: 60,
fill: 0xffffff
@@ -590,17 +590,17 @@
align: 'center'
});
damageText.anchor.set(0.5, 0);
damageText.x = GAME_WIDTH / 2;
- damageText.y = lastRunText.y + 250;
+ damageText.y = lastRunText.y + 120;
game.addChild(damageText);
var noteText = new Text2('Start over with all your upgrades, or reset for a fresh new run! Your choice!', {
size: 50,
fill: 0xffffff
});
noteText.anchor.set(0.5, 0);
noteText.x = GAME_WIDTH / 2;
- noteText.y = damageText.y + 400;
+ noteText.y = damageText.y + 500;
game.addChild(noteText);
var endGameButton = new Container();
var buttonGraphics = endGameButton.attachAsset('endGameButton', {
anchorX: 0.5,