User prompt
make box3 next to megaUpgradeButton
User prompt
make a box2 next to the UpgradeButton
User prompt
make a box 2 next to upgradeButton
User prompt
make a box next to upgradeButton
User prompt
move the box a little longer away from the upgrade
User prompt
write next to the upgrade 50$ 1+click
User prompt
make prices for the different buttons
User prompt
make megaUpgradeButton lower down
User prompt
make another Upgrade button for 10000 that gives 20* clicking
User prompt
make upgradeButton cost 200$ and give 5* clicking
User prompt
make a upgrade button below the upgrade
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'anchor')' in this line: 'self.anchor.set(anchorX, anchorY);' Line Number: 54
User prompt
make a text
User prompt
make a box next to the upgrade
User prompt
make a text below the upgrade saying´ ketchup 50$ 2x click´
User prompt
make a upgrade option in the top right corner for 50$
Initial prompt
pizza clicker
===================================================================
--- original.js
+++ change.js
@@ -19,13 +19,13 @@
self.update = function () {
// Add any updates per frame here if needed
};
});
-// Box2 class
-var Box2 = Container.expand(function () {
+// Box class
+var Box = Container.expand(function () {
var self = Container.call(this);
- var boxGraphics = self.createAsset('box2', 'Box2 next to upgradeButton', 0.5, 0.5);
- // Set up box2 properties if needed
+ var boxGraphics = self.createAsset('box', 'Box next to upgrade', 0.5, 0.5);
+ // Set up box properties if needed
self.update = function () {
// Add any updates per frame here if needed
};
});
@@ -82,8 +82,17 @@
self.update = function () {
// Add any updates per frame here if needed
};
});
+// Box2 class
+var Box2 = Container.expand(function () {
+ var self = Container.call(this);
+ var box2Graphics = self.createAsset('box2', 'Box2 next to upgrade button', 0.5, 0.5);
+ // Set up box2 properties if needed
+ self.update = function () {
+ // Add any updates per frame here if needed
+ };
+});
/****
* Initialize Game
****/
@@ -134,12 +143,8 @@
// Create and position the new upgrade button
var upgradeButton = game.addChild(new UpgradeButton());
upgradeButton.x = upgrade.x;
upgradeButton.y = upgrade.y + upgrade.height + 20;
-// Create box2 next to the upgradeButton
-var box2 = game.addChild(new Box2());
-box2.x = upgradeButton.x - upgradeButton.width / 2 - box2.width;
-box2.y = upgradeButton.y;
// Event listener for clicking the new upgrade button
upgradeButton.on('down', function (obj) {
upgradeButton.onClick();
});
@@ -147,9 +152,12 @@
LK.on('tick', function () {
// Update the pizza and upgrade each frame
pizza.update();
upgrade.update();
-});
+}); // Create and position the new box2 next to the UpgradeButton
+var box2 = game.addChild(new Box2());
+box2.x = upgradeButton.x - upgradeButton.width / 2 - box2.width;
+box2.y = upgradeButton.y;
// Create and position the new mega upgrade button
var megaUpgradeButton = game.addChild(new MegaUpgradeButton());
megaUpgradeButton.x = upgrade.x;
megaUpgradeButton.y = upgradeButton.y + upgradeButton.height + 100;
hotdog with no mustard no ketchup only bread and dog. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
make a ketchup bottle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
yellow mustard. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Pickles. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
write 50$ on a sign. no shadow, 2D
write 200$ on a sign. no shadow, 2D
write 10000$ on a sign. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.