Code edit (1 edits merged)
Please save this source code
User prompt
Coloque mais para baixo.
User prompt
Coloque bem mais a madeira para baixo.
User prompt
Coloque a madeira mais pra baixo, muito mais pra baixo, mas não exagere.
User prompt
Meu Deus, que item pequeno! Aumenta pra caralho!
User prompt
É pra colar, é pra criar a madeira e posicionar na corda. Não é tão difícil não!
User prompt
Coloque mais esticado.
User prompt
deixe mais esticado na vertical
User prompt
Aumente mais!
User prompt
Aumente o tamanho da corda.
User prompt
is very stretched
User prompt
leave the string ratio at the image size ratio
User prompt
Too big, make the rope smaller
User prompt
Place the rope
User prompt
place the bg, and increase it until it is the size of the screen
User prompt
Destroy all code
User prompt
Please fix the bug: 'Uncaught TypeError: object.containsPoint is not a function' in or related to this line: 'if (object.containsPoint(localPos)) {' Line Number: 64
Initial prompt
Tap break objects idle
/**** * Initialize Game ****/ //<Assets used in the game will automatically appear here> //<Write imports for supported plugins here> var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ // Initialize the background image var bg = LK.getAsset('Bg', { anchorX: 0.0, anchorY: 0.0, scaleX: 2048 / 100, // Scale to fit the screen width scaleY: 2732 / 98.44 // Scale to fit the screen height }); // Add the background image to the game game.addChild(bg);
===================================================================
--- original.js
+++ change.js
@@ -1,8 +1,22 @@
-/****
+/****
* Initialize Game
-****/
+****/
//<Assets used in the game will automatically appear here>
//<Write imports for supported plugins here>
var game = new LK.Game({
backgroundColor: 0x000000
-});
\ No newline at end of file
+});
+
+/****
+* Game Code
+****/
+// Initialize the background image
+var bg = LK.getAsset('Bg', {
+ anchorX: 0.0,
+ anchorY: 0.0,
+ scaleX: 2048 / 100,
+ // Scale to fit the screen width
+ scaleY: 2732 / 98.44 // Scale to fit the screen height
+});
+// Add the background image to the game
+game.addChild(bg);
\ No newline at end of file
A small piece of wood.
a hanging rope. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
piece_of_wood. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Upgrade button. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Gold_button_icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
crown. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
raw piece of wood. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Metal. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Chair. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
create a hand icon breaking a brick in half. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Play_button. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Diamond_icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
pixel person with black hair, black pants, black eyes, and blue clothes making a V with hands jumping in a rain of diamonds. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Shop_icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows