User prompt
add in to game call to trigger popup message when game starts
User prompt
add a pop up message at beginning of game with a close button on it
Code edit (1 edits merged)
Please save this source code
User prompt
centre start button and text in middle of screen
Code edit (1 edits merged)
Please save this source code
User prompt
add alpha to overlay
Code edit (4 edits merged)
Please save this source code
User prompt
bring start button and text in front of start screen overlay
Code edit (1 edits merged)
Please save this source code
User prompt
add in before maincontainer in game a start screen that overlays all other asset with a start button and image on plus text
User prompt
make sure start screen is above all over layers
User prompt
add in to game line to call overlay start screen
User prompt
Add in an overlay screen at beginning of game that will have message on. screen will have a start button also that will then start the rest of the game set up when pressed
Code edit (1 edits merged)
Please save this source code
User prompt
Add in a start screen that will have message on. screen will have a start button also that will then start the rest of the game set up when pressed
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'width')' in this line: 'bonusItem.x = Math.random() * (mainContainer.width - bonusItem.createAsset('bonusItem', 'Bonus Item Graphics', 0.5, 0.5).width) + mainContainer.x;' Line Number: 418
User prompt
correct issues with start screen
User prompt
Fix Bug: 'Cannot read properties of undefined (reading 'width')' in this line: 'bonusItem.x = Math.random() * (mainContainer.width - bonusItem.width) + mainContainer.x;' Line Number: 421
Code edit (1 edits merged)
Please save this source code
User prompt
Add in a game start screen that will stop have message on. will have a start button also that will then start the rest of the game set up
User prompt
for display name changes blank name friest then add new name
User prompt
for name display clear name text when a new game starts or restarts
User prompt
When game ends set display name to ""
User prompt
When new game starts set display name to ""
===================================================================
--- original.js
+++ change.js
@@ -1,18 +1,20 @@
var StartScreen = Container.expand(function () {
var self = Container.call(this);
+ var startScreen = new StartScreen();
+ LK.stageContainer.addChild(startScreen);
var message = new Text2('Catch all the presents!', {
size: 100,
- fill: '#ffffff',
+ fill: "#ffffff",
align: 'center'
});
- message.x = 1024;
- message.y = 1000;
message.anchor.set(0.5);
+ message.x = LK.stageContainer.width / 2;
+ message.y = LK.stageContainer.height / 2 - 200;
self.addChild(message);
var startButton = self.createAsset('startButton', 'Start Button', 0.5, 0.5);
- startButton.x = 1024;
- startButton.y = 1366;
+ startButton.x = LK.stageContainer.width / 2;
+ startButton.y = LK.stageContainer.height / 2 + 200;
startButton.interactive = true;
startButton.on('down', function () {
self.destroy();
var game = new Game();
@@ -408,10 +410,8 @@
gravity: 0.2
}];
var Game = Container.expand(function () {
var self = Container.call(this);
- var startScreen = new StartScreen();
- LK.stageContainer.addChild(startScreen);
self.createBonusItem = function (mainContainer) {
var bonusItem = new BonusItem();
bonusItem.x = Math.random() * (mainContainer.width - bonusItem.width) + mainContainer.x;
bonusItem.y = Math.random() * (mainContainer.height - bonusItem.height) + mainContainer.y;
basic snowflake. white Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
open top of Santa's sack. wrapped presents with ribbons and box, vivid colours, candy canes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
close up of a Snow covered roof, Winter scene, star lit night sky, brick chimbly on right hand side, Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stary night sky.dark blue. no land. only sky Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Candy cane, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
old paper scroll, blank with no writing, Single Game Texture. In-Game asset. 2d. transparent Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
rudolf the red nose raindeer Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, bright colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
gift wrapped box, bright light colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
Santa's sleigh with a team of reindeer moving across a star light sky. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.