User prompt
Pur th text in the kiddoe of the button
User prompt
Make thw buton a lot bigger
User prompt
Scale it out to the button
User prompt
I di bot seethw text make it viible
User prompt
Makethe button bigger
User prompt
Please fix the bug: 'undefined is not a constructor (evaluating 'new LK.Button({ text: '20$ +1 worker', fontSize: 30, width: 200, height: 100, x: 1848, // Position the button on the right hand corner y: 0 })')' in or related to this line: 'var button = new LK.Button({' Line Number: 15
User prompt
Put a button on the right hand corner with a text on it saying 20$ +1 worker
User prompt
Make a background
Initial prompt
Dhs
/****
* Initialize Game
****/
//<Assets used in the game will automatically appear here>
//<Write imports for supported plugins here>
//<Write entity 'classes' with empty functions for important behavior here>
var game = new LK.Game({
backgroundColor: 0xFFFFFF //Init game with white background
});
/****
* Game Code
****/
// Create a button
var button = LK.getAsset('button', {
text: '20$ +1 worker',
fontSize: 30,
width: 200,
height: 100,
x: 1848,
// Position the button on the right hand corner
y: 0
});
// Add the button to the game
game.addChild(button); ===================================================================
--- original.js
+++ change.js
@@ -11,9 +11,9 @@
/****
* Game Code
****/
// Create a button
-var button = new LK.Button({
+var button = LK.getAsset('button', {
text: '20$ +1 worker',
fontSize: 30,
width: 200,
height: 100,