User prompt
Make the shop menu a lot taller
User prompt
Make the shop menu a lot lot lot bigger
User prompt
The shop button does not open up the shop menu. Fix that please
User prompt
Make the shop button a lot bigger
User prompt
Lets make a new feature where at the bottom right hand corner of the screen there is a shop button, if you click it. It takes you to a shop menu
User prompt
Now do it agaain, when the second worker button is bought a third one appears just like how the second one does, but the text is 150$ +10 worker, this makes it so instead of getting 5$ every second it turns to 10$ every second
User prompt
No, when you buy the second worker button. It should not make it so you get 5 points twice in a second. It should be you get 5 once every second
User prompt
Ok scratch all that. Make a worker value where every second it is added to your points. When the game starts the worker value is at 0, when the first worker button is bought it turns to 1, when the second is bought it turns to 5.
User prompt
Found another glotch where it does not let you buy the +50 worker button
User prompt
Found a glitch where when you buy the first worker button you get 5 instead of 1. It should be +1 the first time you buy it. And the then the second time you buy it it turns to 5
User prompt
Now make it so when you buy the worker button, it turns into a new button in the same position but different text, this text will say 50$ +5 worker. This will make it so the every 1 second you just bought turns into +5 every second instead of 1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'intervalId = setInterval(function () {' Line Number: 72
User prompt
Now whenever you have 20 or more points you can buy the button in the eifht hand corner. When you so tou start getting +1 pointa every second and the fe is 20 points
User prompt
Now make ir whenever tou click the button in the center the points go up by 1
User prompt
Now create a text on the left hands corner named points:
User prompt
Make the new button a circle bot a fucking square
User prompt
Delete the text on the new button and make it a circle
User prompt
KEEP THE OLD FUCKING BUTTON IN HE SAME POSITION AND MAKE A NEW BUTTON AND PUT THE NEW BUTTON IN THE CENTERBOF THE SCREEN
User prompt
Create a brand e burton
User prompt
Make a new button and put it in thw middle
User prompt
No move tht button back. Make a new button in the center od the creen
User prompt
Make a big buton in the cneer od the SC reen
User prompt
Center the text ti th middle of the button
User prompt
No put the positin back just make it bigger
User prompt
Good bow mak it. Little bigger
/**** * 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 new button var newButton = LK.getAsset('button', { width: 300, height: 300, x: 2048 / 2 - 150, // Position the new button in the center of the screen y: 2732 / 2 - 150, shape: 'ellipse' }); // Add the new button to the game game.addChild(newButton); ; ; var button = LK.getAsset('button', { width: 600, height: 300, x: 1448, // Position the button on the right hand corner y: 0 }); // Add the button to the game game.addChild(button); // Create a text var buttonText = new Text2('20$ +1 worker', { size: 100, fill: 0x000000 }); // Position the text on the button buttonText.x = button.x + button.width / 2 - buttonText.width / 2; buttonText.y = button.y + button.height / 2 - buttonText.height / 2; // Add the text to the game game.addChild(buttonText); ;
===================================================================
--- original.js
+++ change.js
@@ -12,26 +12,17 @@
* Game Code
****/
// Create a new button
var newButton = LK.getAsset('button', {
- width: 600,
+ width: 300,
height: 300,
- x: 2048 / 2 - 300,
+ x: 2048 / 2 - 150,
// Position the new button in the center of the screen
- y: 2732 / 2 - 150
+ y: 2732 / 2 - 150,
+ shape: 'ellipse'
});
// Add the new button to the game
game.addChild(newButton);
-// Create a text for the new button
-var newButtonText = new Text2('New Button', {
- size: 100,
- fill: 0x000000
-});
-// Position the text on the new button
-newButtonText.x = newButton.x + newButton.width / 2 - newButtonText.width / 2;
-newButtonText.y = newButton.y + newButton.height / 2 - newButtonText.height / 2;
-// Add the text to the game
-game.addChild(newButtonText);
;
;
var button = LK.getAsset('button', {
width: 600,