/**** 
* Classes
****/
// Upgrade class
var Upgrade = Container.expand(function () {
	var self = Container.call(this);
	var upgradeGraphics = self.attachAsset('upgrade', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.cost = 50; // Cost of the upgrade
	self.onClick = function () {
		if (LK.getScore() >= self.cost) {
			// Deduct cost and increase pizza value
			LK.setScore(LK.getScore() - self.cost);
			pizza.value += 1;
			// Update score text
			scoreTxt.setText("$" + LK.getScore());
			// Add a visual effect or animation if needed
		}
	};
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// Box class
var Box = Container.expand(function () {
	var self = Container.call(this);
	var boxGraphics = self.attachAsset('box', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	// Set up box properties if needed
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// UpgradeButton class
var UpgradeButton = Container.expand(function () {
	var self = Container.call(this);
	var upgradeButtonGraphics = self.attachAsset('upgradeButton', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.cost = 200; // Cost of the new upgrade button
	self.onClick = function () {
		if (LK.getScore() >= self.cost) {
			// Deduct cost and increase pizza value more significantly
			LK.setScore(LK.getScore() - self.cost);
			pizza.value += 5 * 5; // Now each click will earn 5 times more
			// Update score text
			scoreTxt.setText("$" + LK.getScore());
			// Add a visual effect or animation if needed
		}
	};
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// Pizza class
var Pizza = Container.expand(function () {
	var self = Container.call(this);
	var pizzaGraphics = self.attachAsset('pizza', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.value = 1; // Each click will earn the player $1
	self.onClick = function () {
		// Increase score
		LK.setScore(LK.getScore() + self.value);
		// Update score text
		scoreTxt.setText("$" + LK.getScore());
		// Add a visual effect or animation if needed
	};
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// MegaUpgradeButton class
var MegaUpgradeButton = Container.expand(function () {
	var self = Container.call(this);
	var megaUpgradeButtonGraphics = self.attachAsset('megaUpgradeButton', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.cost = 10000; // Cost of the mega upgrade button
	self.onClick = function () {
		if (LK.getScore() >= self.cost) {
			// Deduct cost and increase pizza value significantly
			LK.setScore(LK.getScore() - self.cost);
			pizza.value += 20 * 20; // Now each click will earn 20 times more
			// Update score text
			scoreTxt.setText("$" + LK.getScore());
			// Add a visual effect or animation if needed
		}
	};
	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.attachAsset('box2', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	// Set up box2 properties if needed
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
var Box3 = Container.expand(function () {
	var self = Container.call(this);
	var box3Graphics = self.attachAsset('box3', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
/**** 
* Initialize Game
****/
var game = new LK.Game({
	backgroundColor: 0x000000 // Init game with black background
});
/**** 
* Game Code
****/
var upgrade = game.addChild(new Upgrade());
upgrade.x = 2048 - upgrade.width / 2;
upgrade.y = upgrade.height / 2;
// Score text
var scoreTxt = new Text2('$0', {
	size: 150,
	fill: "#ffffff"
});
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
// Upgrade text
var upgradeTxt = new Text2('50$ 1+click', {
	size: 100,
	fill: "#ffffff"
});
upgradeTxt.anchor.set(0.5, 0);
upgradeTxt.x = upgrade.x;
upgradeTxt.y = upgrade.y + upgrade.height / 2 + 20;
LK.gui.bottom.addChild(upgradeTxt);
// Create pizza in the center of the screen
var pizza = game.addChild(new Pizza());
pizza.x = 2048 / 2;
pizza.y = 2732 / 2;
// Create box next to the upgrade
var box = game.addChild(new Box());
box.x = upgrade.x - upgrade.width / 2 - box.width;
box.y = upgrade.y;
// Event listener for clicking the pizza
pizza.on('down', function (obj) {
	pizza.onClick();
}); // Event listener for clicking the upgrade option
upgrade.on('down', function (obj) {
	upgrade.onClick();
}); // Event listener for clicking the upgrade option
upgrade.on('down', function (obj) {
	upgrade.onClick();
});
// Create and position the new upgrade button
var upgradeButton = game.addChild(new UpgradeButton());
upgradeButton.x = upgrade.x;
upgradeButton.y = upgrade.y + upgrade.height + 20;
// Event listener for clicking the new upgrade button
upgradeButton.on('down', function (obj) {
	upgradeButton.onClick();
});
// Main game tick event
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;
// Event listener for clicking the new mega upgrade button
megaUpgradeButton.on('down', function (obj) {
	megaUpgradeButton.onClick();
});
var box3 = game.addChild(new Box3());
box3.x = megaUpgradeButton.x - megaUpgradeButton.width / 2 - box3.width;
box3.y = megaUpgradeButton.y;
// No need for additional game logic as the game is simple: click the pizza to earn money /**** 
* Classes
****/
// Upgrade class
var Upgrade = Container.expand(function () {
	var self = Container.call(this);
	var upgradeGraphics = self.attachAsset('upgrade', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.cost = 50; // Cost of the upgrade
	self.onClick = function () {
		if (LK.getScore() >= self.cost) {
			// Deduct cost and increase pizza value
			LK.setScore(LK.getScore() - self.cost);
			pizza.value += 1;
			// Update score text
			scoreTxt.setText("$" + LK.getScore());
			// Add a visual effect or animation if needed
		}
	};
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// Box class
var Box = Container.expand(function () {
	var self = Container.call(this);
	var boxGraphics = self.attachAsset('box', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	// Set up box properties if needed
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// UpgradeButton class
var UpgradeButton = Container.expand(function () {
	var self = Container.call(this);
	var upgradeButtonGraphics = self.attachAsset('upgradeButton', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.cost = 200; // Cost of the new upgrade button
	self.onClick = function () {
		if (LK.getScore() >= self.cost) {
			// Deduct cost and increase pizza value more significantly
			LK.setScore(LK.getScore() - self.cost);
			pizza.value += 5 * 5; // Now each click will earn 5 times more
			// Update score text
			scoreTxt.setText("$" + LK.getScore());
			// Add a visual effect or animation if needed
		}
	};
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// Pizza class
var Pizza = Container.expand(function () {
	var self = Container.call(this);
	var pizzaGraphics = self.attachAsset('pizza', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.value = 1; // Each click will earn the player $1
	self.onClick = function () {
		// Increase score
		LK.setScore(LK.getScore() + self.value);
		// Update score text
		scoreTxt.setText("$" + LK.getScore());
		// Add a visual effect or animation if needed
	};
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
// MegaUpgradeButton class
var MegaUpgradeButton = Container.expand(function () {
	var self = Container.call(this);
	var megaUpgradeButtonGraphics = self.attachAsset('megaUpgradeButton', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.cost = 10000; // Cost of the mega upgrade button
	self.onClick = function () {
		if (LK.getScore() >= self.cost) {
			// Deduct cost and increase pizza value significantly
			LK.setScore(LK.getScore() - self.cost);
			pizza.value += 20 * 20; // Now each click will earn 20 times more
			// Update score text
			scoreTxt.setText("$" + LK.getScore());
			// Add a visual effect or animation if needed
		}
	};
	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.attachAsset('box2', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	// Set up box2 properties if needed
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
var Box3 = Container.expand(function () {
	var self = Container.call(this);
	var box3Graphics = self.attachAsset('box3', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.update = function () {
		// Add any updates per frame here if needed
	};
});
/**** 
* Initialize Game
****/
var game = new LK.Game({
	backgroundColor: 0x000000 // Init game with black background
});
/**** 
* Game Code
****/
var upgrade = game.addChild(new Upgrade());
upgrade.x = 2048 - upgrade.width / 2;
upgrade.y = upgrade.height / 2;
// Score text
var scoreTxt = new Text2('$0', {
	size: 150,
	fill: "#ffffff"
});
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
// Upgrade text
var upgradeTxt = new Text2('50$ 1+click', {
	size: 100,
	fill: "#ffffff"
});
upgradeTxt.anchor.set(0.5, 0);
upgradeTxt.x = upgrade.x;
upgradeTxt.y = upgrade.y + upgrade.height / 2 + 20;
LK.gui.bottom.addChild(upgradeTxt);
// Create pizza in the center of the screen
var pizza = game.addChild(new Pizza());
pizza.x = 2048 / 2;
pizza.y = 2732 / 2;
// Create box next to the upgrade
var box = game.addChild(new Box());
box.x = upgrade.x - upgrade.width / 2 - box.width;
box.y = upgrade.y;
// Event listener for clicking the pizza
pizza.on('down', function (obj) {
	pizza.onClick();
}); // Event listener for clicking the upgrade option
upgrade.on('down', function (obj) {
	upgrade.onClick();
}); // Event listener for clicking the upgrade option
upgrade.on('down', function (obj) {
	upgrade.onClick();
});
// Create and position the new upgrade button
var upgradeButton = game.addChild(new UpgradeButton());
upgradeButton.x = upgrade.x;
upgradeButton.y = upgrade.y + upgrade.height + 20;
// Event listener for clicking the new upgrade button
upgradeButton.on('down', function (obj) {
	upgradeButton.onClick();
});
// Main game tick event
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;
// Event listener for clicking the new mega upgrade button
megaUpgradeButton.on('down', function (obj) {
	megaUpgradeButton.onClick();
});
var box3 = game.addChild(new Box3());
box3.x = megaUpgradeButton.x - megaUpgradeButton.width / 2 - box3.width;
box3.y = megaUpgradeButton.y;
// No need for additional game logic as the game is simple: click the pizza to earn money
:quality(85)/https://cdn.frvr.ai/65a91be7bca71288805c4a4e.png%3F3) 
 hotdog with no mustard no ketchup only bread and dog. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/65a943bf8709882df76dd352.png%3F3) 
 make a ketchup bottle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/65a950cd8709882df76dd370.png%3F3) 
 yellow mustard. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/65a9518a8709882df76dd37d.png%3F3) 
 Pickles. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/65aa602e344d9b27c1084aee.png%3F3) 
 write 50$ on a sign. no shadow, 2D
:quality(85)/https://cdn.frvr.ai/65aa6067344d9b27c1084af8.png%3F3) 
 write 200$ on a sign. no shadow, 2D
:quality(85)/https://cdn.frvr.ai/65ae2a241563bdb3862da9bc.png%3F3) 
 write 10000$ on a sign. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.