User prompt
Please fix the bug: 'livesDisplay.setText is not a function' in or related to this line: 'livesDisplay.setText('Lives: ' + playerLives);' Line Number: 58
User prompt
the player has 3 lives,
User prompt
increase the size of the bg asset I meant this. do
User prompt
put bg in full screen, 720p
User prompt
make it so that when you touch the screen, the pencil is thrown down.
User prompt
make the pencil move left and right
User prompt
It's a fucking position, do it now
User prompt
Add pencil
User prompt
Remove all code
User prompt
Remove all in scene
Initial prompt
Fruit pencil
/**** * Classes ****/ var Pencil = Container.expand(function () { var self = Container.call(this); // Attach the pencil image asset to the container var pencilGraphics = self.attachAsset('Pencil', { anchorX: 0.5, anchorY: 0.5 }); // Set initial position of the pencil self.x = 1024; // Center horizontally self.y = 1366; // Center vertically }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ var pencil = game.addChild(new Pencil());
===================================================================
--- original.js
+++ change.js
@@ -1,6 +1,26 @@
-/****
+/****
+* Classes
+****/
+var Pencil = Container.expand(function () {
+ var self = Container.call(this);
+ // Attach the pencil image asset to the container
+ var pencilGraphics = self.attachAsset('Pencil', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ // Set initial position of the pencil
+ self.x = 1024; // Center horizontally
+ self.y = 1366; // Center vertically
+});
+
+/****
* Initialize Game
-****/
+****/
var game = new LK.Game({
backgroundColor: 0x000000
-});
\ No newline at end of file
+});
+
+/****
+* Game Code
+****/
+var pencil = game.addChild(new Pencil());
\ No newline at end of file
Pencil. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
picnic bg. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
heart icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
mango fruit with eye and mouth animation.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Banana with eye and mouth animation.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
picnic bg in a night sky. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Watermelon with eye and mouth animation. In-Game asset. 2d. High contrast. No shadows
Orange with eye and mouth animation. In-Game asset. 2d. High contrast. No shadows
Shop icon. In-Game asset. 2d. High contrast. No shadows
Coin icon. In-Game asset. 2d. High contrast. No shadows
Emoji_shocked. In-Game asset. 2d. High contrast. No shadows
Settings icon. In-Game asset. 2d. High contrast. No shadows