User prompt
Add level1 class and background1 class
User prompt
Add its background1
User prompt
Add level to the game
Code edit (1 edits merged)
Please save this source code
User prompt
remove numbers close to stone asset 00 and the 2
User prompt
remove score of wood
User prompt
remove the 00 and 2 in stone score
User prompt
remove bronze second score text and for stone the double 00
User prompt
Please fix the bug: 'text6 is not defined' in or related to this line: 'var crystal = LK.getAsset('crystal', {' Line Number: 1101
User prompt
Please fix the bug: 'text4 is not defined' in or related to this line: 'var silver = LK.getAsset('silver', {' Line Number: 1074
User prompt
Please fix the bug: 'text3 is not defined' in or related to this line: 'text3.x = bronze.x + bronze.width / 2 + 10; // Position the text to the right of the bronze asset' Line Number: 1062
User prompt
Please fix the bug: 'text2 is not defined' in or related to this line: 'var stone = LK.getAsset('stone', {' Line Number: 1037
User prompt
Please fix the bug: 'text1 is not defined' in or related to this line: 'var wood = LK.getAsset('wood', {' Line Number: 1017
User prompt
Please fix the bug: 'text1 is not defined' in or related to this line: 'var wood = LK.getAsset('wood', {' Line Number: 1012
User prompt
remove the duplicate of score texts of the resources
User prompt
Please fix the bug: 'Uncaught ReferenceError: initializeLevel2 is not defined' in or related to this line: 'initializeLevel2();' Line Number: 572
User prompt
Add stonearea and towoodarea assets to the page 2
User prompt
Make this screen page 1 and change other levels to be pages
User prompt
remove duplication of bronze score let one only
User prompt
Remove the duplications let the 8 old scores texts only
User prompt
remove score duplications
User prompt
remove score duplication
User prompt
Remove duplication of texts resources let only the one with 200 score
User prompt
add level to the game
User prompt
Please fix the bug: 'Uncaught ReferenceError: initializeLevel1 is not defined' in or related to this line: 'initializeLevel1();' Line Number: 645
/**** * Classes ****/ // Create a Level1 class by using the LK expand method to extend Container. var Level1 = Container.expand(function () { var self = Container.call(this); // Get and automatically addChild to self asset with id 'background1' with the anchor point set to 0, 0 var background1 = self.attachAsset('background1', { anchorX: 0.0, anchorY: 0.0, x: 0, y: 0 }); }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ var level = game.addChild(new Level1()); var background1 = game.addChild(LK.getAsset('background1', { anchorX: 0.0, anchorY: 0.0, x: 0, y: 0 }));
===================================================================
--- original.js
+++ change.js
@@ -1,5 +1,20 @@
/****
+* Classes
+****/
+// Create a Level1 class by using the LK expand method to extend Container.
+var Level1 = Container.expand(function () {
+ var self = Container.call(this);
+ // Get and automatically addChild to self asset with id 'background1' with the anchor point set to 0, 0
+ var background1 = self.attachAsset('background1', {
+ anchorX: 0.0,
+ anchorY: 0.0,
+ x: 0,
+ y: 0
+ });
+});
+
+/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
@@ -7,9 +22,9 @@
/****
* Game Code
****/
-var level = 1;
+var level = game.addChild(new Level1());
var background1 = game.addChild(LK.getAsset('background1', {
anchorX: 0.0,
anchorY: 0.0,
x: 0,
2D wreckage of wood, square, HD colors. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
House from the front facing the screen with big sign above it have description "SHOP", Hd colors
coin with colors, have "DA", hd colors. have black circles and black line for the "DA", between the 2 circles do small black lines all around. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Modern App Store icon, square with rounded corners, HD colors for a 2d game titled "The Collector" and with the description "about building houses and trees and decorations on a map to make it look like city, which then generate "DA" coins after a countdown timer expires. Players can collect these coins to increase their score, which they can then use to purchase more houses and trees and decorations from the shop button on the middle left side of the screen". with text on the middle top of the banner "the collector"!