User prompt
Fix Bug: 'Uncaught TypeError: LK.initGame is not a function' in or related to this line: 'LK.initGame({' Line Number: 187
User prompt
Fix Bug: 'Uncaught TypeError: LK.init is not a function' in or related to this line: 'LK.init({' Line Number: 187
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: LK.Point is not a constructor' in or related to this line: 'self.anchor = new LK.Point();' Line Number: 94
User prompt
Fix Bug: 'Uncaught TypeError: Point is not a constructor' in or related to this line: 'self.anchor = new Point();' Line Number: 94
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0.5);' Line Number: 204
User prompt
Fix Bug: 'Uncaught TypeError: Point is not a constructor' in or related to this line: 'buttonText.anchor = new Point(0.5, 0.5);' Line Number: 89
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0.5);' Line Number: 204
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0.5);' Line Number: 203
User prompt
Fix Bug: 'ReferenceError: difficultyText is not defined' in or related to this line: 'var difficultyButton = new Button(difficultyText, container.width / 2, titleText.height + 50, function () {' Line Number: 381
User prompt
Fix Bug: 'ReferenceError: container is not defined' in or related to this line: 'container.addChild(titleText);' Line Number: 379
User prompt
Fix Bug: 'TypeError: game.clearChildren is not a function' in or related to this line: 'game.clearChildren();' Line Number: 199
User prompt
Fix Bug: 'TypeError: game.removeAllChildren is not a function' in or related to this line: 'game.removeAllChildren();' Line Number: 199
User prompt
Fix Bug: 'TypeError: game.clearChildren is not a function' in or related to this line: 'game.clearChildren();' Line Number: 199
User prompt
Fix Bug: 'Uncaught TypeError: LK.hideLoader is not a function' in or related to this line: 'LK.hideLoader();' Line Number: 403
User prompt
Fix Bug: 'Uncaught TypeError: LK.showMenuPage is not a function' in or related to this line: 'LK.showMenuPage(easyMenuPage);' Line Number: 401
User prompt
Fix Bug: 'Uncaught TypeError: LK.hideMenuPage is not a function' in or related to this line: 'LK.hideMenuPage(container);' Line Number: 209
User prompt
Fix Bug: 'Uncaught TypeError: LK.hideMenuPage is not a function' in or related to this line: 'LK.hideMenuPage(container);' Line Number: 209
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0);' Line Number: 203
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0);' Line Number: 201
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0);' Line Number: 202
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'this.anchor.set(0.5, 0.5);' Line Number: 89
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0);' Line Number: 201
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'set')' in or related to this line: 'difficultyButton.anchor.set(0.5, 0);' Line Number: 201
User prompt
Fix Bug: 'Uncaught ReferenceError: createMenuPage is not defined' in or related to this line: 'createMenuPage(self, 'Easy', 'easy', '#00ff00');' Line Number: 159
===================================================================
--- original.js
+++ change.js
@@ -85,9 +85,9 @@
var buttonText = new Text2(text, {
size: 200,
fill: "#ffffff"
});
- this.anchor.set(0.5, 0.5);
+ buttonText.anchor.set(0.5, 0.5);
buttonText.anchor.set(0.5, 0);
self.addChild(buttonText);
self.x = positionX;
self.y = positionY;
android. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
letter X png. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
space background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
galaxy background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
galaxy background. High quality
space background.. High contrast