Code edit (7 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: x is not defined' in or related to this line: 'changeToText.x = x; // x coordinate as per requirement' Line Number: 394
User prompt
add a new text block to screen saying "Change To:" with x and y variables. do not touch score text
User prompt
Fix Bug: 'Uncaught ReferenceError: topRightImage is not defined' in or related to this line: 'var topRightImageGraphics = topRightImage.attachAsset('imageId', {' Line Number: 391
User prompt
Fix Bug: 'Uncaught ReferenceError: customizableX is not defined' in or related to this line: 'changeToText.x = customizableX; // Replace 'customizableX' with the desired x coordinate' Line Number: 388
User prompt
add text to to screen saying "Change To:" with x and y coordinates that can be changed
Code edit (2 edits merged)
Please save this source code
User prompt
Add text saying "Change" 50pixels above imageID
Code edit (1 edits merged)
Please save this source code
User prompt
correct text2 code so it shows on teh screen
Code edit (5 edits merged)
Please save this source code
User prompt
change text2 hieght to be 150 from top of screen
Code edit (12 edits merged)
Please save this source code
User prompt
Add text above imageID
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture('Zbert1');' Line Number: 108
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture('Zbert1');' Line Number: 108
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture(LK.getAsset('Zbert1', {}));' Line Number: 108
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture(LK.getAsset('Zbert1', {}));' Line Number: 108
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture(LK.getAsset(zbertTextures.up, {}));' Line Number: 108
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture(LK.getAsset(zbertTextures.up, {}));' Line Number: 108
Code edit (3 edits merged)
Please save this source code
User prompt
correct code to ensure texture swap takes place when Zbert moves
User prompt
Correct issue with zbert by preloading or retrieving the necessary textures for both Zbert1 and Zbert2 and then swapping the `texture` property of the `zbertGraphics` sprite with the appropriate preloaded texture when Zbert changes direction. This would be done without calling `LK.getAsset` within the `move` method each time a direction change occurs.
Code edit (6 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -99,9 +99,9 @@
switch (direction) {
case 'upLeft':
targetX -= tileWidth / 2 + 2;
targetY -= tileHeight - 90;
- self.zbertGraphics.setTexture(LK.getAsset(zbertTextures.up, {}));
+ self.zbertGraphics.texture = LK.getAsset(zbertTextures.up, {});
break;
case 'upRight':
targetX += tileWidth / 2;
targetY -= tileHeight - 90;
@@ -109,9 +109,9 @@
break;
case 'downLeft':
targetX -= tileWidth / 2;
targetY += tileHeight - 90;
- self.zbertGraphics.setTexture(LK.getAsset(zbertTextures.down, {}));
+ self.zbertGraphics.texture = LK.getAsset(zbertTextures.down, {});
break;
case 'downRight':
targetX += tileWidth / 2;
targetY += tileHeight - 90;
beautiful landscape. starry sky, pastel colours, high definition, alien world. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. 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.
A little cube person. 2 legs. back to viewer. facing 45 degrees to the right. multicoloured skin, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle. metallic. light bevel on edge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Round furry, cute alien ball with big eyes. vivid colours, looking at 45 degrees to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bright 3d present with bow, vivd colours. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Change to be vivid multicoloured cube
A simple Triangle, flat shaded, bevelled edges. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Speech bubble with expletive word in it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
parachute. multicoloured. cartoon style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle with a single thin black border. flat shade. simple graphic. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
small star shape, vivid metallic blue, varying length spikes on star. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.