User prompt
At the bottom of the screen, add big "hello" text. Large white font, on top of everything
User prompt
I cannot see the text?
User prompt
add "hello" text at the bottom of the screen
User prompt
It still requires 2 clicks
User prompt
Okay. I only need 1 layer of Square White
User prompt
Why do i have to click 2 times to make SquareWhite disappear?
User prompt
WHy can i not see the number 1. Please just show it oh my god
User prompt
Move the number 1 to be 100 pixels lower than Grid
User prompt
Add big number "1" at the bottom of the screen. White font color
User prompt
remove 2nd background
User prompt
At bottom of the screen, above all other layers, put big "1" number
Code edit (1 edits merged)
Please save this source code
User prompt
Move that string to middle of the screen, change font color to white
User prompt
Make the font for it very large
User prompt
Place that long string in front of everything
User prompt
Add a long string of randomised numbers at the bottom of the screen
User prompt
Make 3 of the WhiteCircles to be full brightness at the start of the game, while the rest stay 20% bright
User prompt
Randomise each light at the start of the game, whether its dark or not
User prompt
Change it to 3-8 seconds
User prompt
Perfect! change it to 5-10 seconds, though
User prompt
Please fix the bug: 'Timeout.tick error: setTimeout is not a function' in or related to this line: 'setTimeout(_changeBrightness, randomTime); // Schedule next brightness change' Line Number: 130
User prompt
Please fix the bug: 'Uncaught TypeError: setTimeout is not a function' in or related to this line: 'setTimeout(function () {' Line Number: 128
User prompt
For each white circle, add a randomiser. Every 1-5 seconds change their brightness to 20%, then revert it back after another 1-5 seconds, randomly. Do it for each of the 6 White Circles
User prompt
Move White Circles 10 pixels to the left
User prompt
Move White Circles 80 pixels higher, make each White Circle 30% smaller
/**** * Initialize Game ****/ //<Assets used in the game will automatically appear here> var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ // Add 2nd background to the game var background2 = LK.getAsset('2ndBackground', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2, width: 2048 * 1.5 * 1.2, height: 2048 * 1.5 * 1.2, orientation: 1, alpha: 1 // Make the background more brighter }); game.addChild(background2); // Add main background to the game var background = LK.getAsset('Background', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2 + 20, y: 2732 / 2, width: 2068 * 1.05, height: 2000, alpha: 1 }); // Add background after adding the squares to the game for (var i = 0; i < gridSize; i++) { for (var j = 0; j < gridSize; j++) { var square = LK.getAsset('SquareWhite', { anchorX: 0.5, anchorY: 0.5, x: startX + i * squareSize, y: startY + j * squareSize, scaleX: 2.04, // Reduce the scaleX by 15% scaleY: 2.04 // Reduce the scaleY by 15% }); square.down = function (x, y, obj) { this.destroy(); }; game.addChild(square); grid.push(square); } } game.addChild(background); // Add brown board to the game var brownBoardWidth = 400; // Define the width of the BrownBoard asset var brownBoardHeight = 400; // Define the height of the BrownBoard asset var brownBoard = LK.getAsset('BrownBoard', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 - 30, scaleX: 2048 / brownBoardWidth, scaleY: 6 / 1.5 * 1.1 * 1.1 * 0.95, alpha: 1 }); // Add main background to the game var background = LK.getAsset('Background', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2 + 20, y: 2732 / 2, width: 2068 * 1.05, height: 2000, alpha: 0.8 }); game.addChild(brownBoard); game.addChild(background); // Initialize an 8x8 grid of SquareWhite in the middle of the screen var grid = []; var gridSize = 8; var squareSize = 225.28 * 0.95; // Reduce the size of the grid by 5% var startX = (2048 - gridSize * squareSize) / 2 + 110; var startY = (2732 - gridSize * squareSize) / 2 + 90; for (var i = 0; i < gridSize; i++) { for (var j = 0; j < gridSize; j++) { var square = LK.getAsset('SquareWhite', { anchorX: 0.5, anchorY: 0.5, x: startX + i * squareSize, y: startY + j * squareSize, scaleX: 2.112 * 1.03, scaleY: 2.112 * 1.03 }); square.down = function (x, y, obj) { this.destroy(); }; game.addChild(square); grid.push(square); } } // Create 6 WhiteCircle instances and stack them on top of each other in the middle of the screen for (var i = 0; i < 6; i++) { var whiteCircle = LK.getAsset('WhiteCircle', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2 - 900, y: 2732 / 2 + i * 300 - 730, // Move White Circles 80 pixels higher width: 31.5, // Make each White Circle 30% smaller height: 31.5, // Make each White Circle 30% smaller tint: 0xCCCCCC }); game.addChild(whiteCircle); } // Add ScoreBack behind the score and make it around 1/3 screen long // Add score on top of the screen var scoreTxt = new Text2('0', { size: 150, fill: "#ffffff", font: "Helvetica" }); LK.setScore(50); scoreTxt.setText(LK.getScore()); scoreTxt.anchor.set(0.5, 0); scoreTxt.y += 15; LK.gui.top.addChild(scoreTxt); var scoreBack = LK.getAsset('ScoreBack', { anchorX: 0.5, anchorY: 0.5, x: scoreTxt.x + 10, y: 20 + 75 - 35 + 20, width: 2048 / 3, height: 150 * 1.3 * 1.3 * 1.4 * 1.2, alpha: 1 }); LK.gui.top.addChild(scoreBack); // Add score on top of the screen var scoreTxt = new Text2('0', { size: 150, fill: "#ffffff", font: "Helvetica" }); LK.setScore(50); scoreTxt.setText(LK.getScore()); scoreTxt.anchor.set(0.5, 0); scoreTxt.y += 15; LK.gui.top.addChild(scoreTxt); // Initialize an 8x8 grid of SquareWhite in the middle of the screen var grid = []; var gridSize = 8; var squareSize = 225.28 * 0.95; // Reduce the size of the grid by 5% var startX = (2048 - gridSize * squareSize) / 2 + 110; var startY = (2732 - gridSize * squareSize) / 2 + 90; for (var i = 0; i < gridSize; i++) { for (var j = 0; j < gridSize; j++) { var square = LK.getAsset('SquareWhite', { anchorX: 0.5, anchorY: 0.5, x: startX + i * squareSize, y: startY + j * squareSize, scaleX: 2.112 * 1.03, scaleY: 2.112 * 1.03 }); square.down = function (x, y, obj) { this.destroy(); }; game.addChild(square); grid.push(square); } }
/****
* Initialize Game
****/
//<Assets used in the game will automatically appear here>
var game = new LK.Game({
backgroundColor: 0x000000 //Init game with black background
});
/****
* Game Code
****/
// Add 2nd background to the game
var background2 = LK.getAsset('2ndBackground', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
y: 2732 / 2,
width: 2048 * 1.5 * 1.2,
height: 2048 * 1.5 * 1.2,
orientation: 1,
alpha: 1 // Make the background more brighter
});
game.addChild(background2);
// Add main background to the game
var background = LK.getAsset('Background', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2 + 20,
y: 2732 / 2,
width: 2068 * 1.05,
height: 2000,
alpha: 1
});
// Add background after adding the squares to the game
for (var i = 0; i < gridSize; i++) {
for (var j = 0; j < gridSize; j++) {
var square = LK.getAsset('SquareWhite', {
anchorX: 0.5,
anchorY: 0.5,
x: startX + i * squareSize,
y: startY + j * squareSize,
scaleX: 2.04,
// Reduce the scaleX by 15%
scaleY: 2.04 // Reduce the scaleY by 15%
});
square.down = function (x, y, obj) {
this.destroy();
};
game.addChild(square);
grid.push(square);
}
}
game.addChild(background);
// Add brown board to the game
var brownBoardWidth = 400; // Define the width of the BrownBoard asset
var brownBoardHeight = 400; // Define the height of the BrownBoard asset
var brownBoard = LK.getAsset('BrownBoard', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
y: 2732 / 2 - 30,
scaleX: 2048 / brownBoardWidth,
scaleY: 6 / 1.5 * 1.1 * 1.1 * 0.95,
alpha: 1
});
// Add main background to the game
var background = LK.getAsset('Background', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2 + 20,
y: 2732 / 2,
width: 2068 * 1.05,
height: 2000,
alpha: 0.8
});
game.addChild(brownBoard);
game.addChild(background);
// Initialize an 8x8 grid of SquareWhite in the middle of the screen
var grid = [];
var gridSize = 8;
var squareSize = 225.28 * 0.95; // Reduce the size of the grid by 5%
var startX = (2048 - gridSize * squareSize) / 2 + 110;
var startY = (2732 - gridSize * squareSize) / 2 + 90;
for (var i = 0; i < gridSize; i++) {
for (var j = 0; j < gridSize; j++) {
var square = LK.getAsset('SquareWhite', {
anchorX: 0.5,
anchorY: 0.5,
x: startX + i * squareSize,
y: startY + j * squareSize,
scaleX: 2.112 * 1.03,
scaleY: 2.112 * 1.03
});
square.down = function (x, y, obj) {
this.destroy();
};
game.addChild(square);
grid.push(square);
}
}
// Create 6 WhiteCircle instances and stack them on top of each other in the middle of the screen
for (var i = 0; i < 6; i++) {
var whiteCircle = LK.getAsset('WhiteCircle', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2 - 900,
y: 2732 / 2 + i * 300 - 730,
// Move White Circles 80 pixels higher
width: 31.5,
// Make each White Circle 30% smaller
height: 31.5,
// Make each White Circle 30% smaller
tint: 0xCCCCCC
});
game.addChild(whiteCircle);
}
// Add ScoreBack behind the score and make it around 1/3 screen long
// Add score on top of the screen
var scoreTxt = new Text2('0', {
size: 150,
fill: "#ffffff",
font: "Helvetica"
});
LK.setScore(50);
scoreTxt.setText(LK.getScore());
scoreTxt.anchor.set(0.5, 0);
scoreTxt.y += 15;
LK.gui.top.addChild(scoreTxt);
var scoreBack = LK.getAsset('ScoreBack', {
anchorX: 0.5,
anchorY: 0.5,
x: scoreTxt.x + 10,
y: 20 + 75 - 35 + 20,
width: 2048 / 3,
height: 150 * 1.3 * 1.3 * 1.4 * 1.2,
alpha: 1
});
LK.gui.top.addChild(scoreBack);
// Add score on top of the screen
var scoreTxt = new Text2('0', {
size: 150,
fill: "#ffffff",
font: "Helvetica"
});
LK.setScore(50);
scoreTxt.setText(LK.getScore());
scoreTxt.anchor.set(0.5, 0);
scoreTxt.y += 15;
LK.gui.top.addChild(scoreTxt);
// Initialize an 8x8 grid of SquareWhite in the middle of the screen
var grid = [];
var gridSize = 8;
var squareSize = 225.28 * 0.95; // Reduce the size of the grid by 5%
var startX = (2048 - gridSize * squareSize) / 2 + 110;
var startY = (2732 - gridSize * squareSize) / 2 + 90;
for (var i = 0; i < gridSize; i++) {
for (var j = 0; j < gridSize; j++) {
var square = LK.getAsset('SquareWhite', {
anchorX: 0.5,
anchorY: 0.5,
x: startX + i * squareSize,
y: startY + j * squareSize,
scaleX: 2.112 * 1.03,
scaleY: 2.112 * 1.03
});
square.down = function (x, y, obj) {
this.destroy();
};
game.addChild(square);
grid.push(square);
}
}
Rounded square with fog inside it. Simplistic. Single Game Texture. In-Game asset. 2d. Blank background. Low contrast. No shadows.
square with Neon dark blue borders, simple, cyberpunk, 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
square with Neon dark blue borders, simple, futuristic, 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Light blue Circle Light 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Sci-fi Vault dark Concrete wall texture 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Arrow "backwards" or "undo". White arrow, no background, 2d,. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Scifi Square with thin, rounded corners. Dark grey. 2d. Single Game Texture. Little blue outline
White triangle with sharp edges. White fill, thin outline, 2d, no shadows, blank background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.