User prompt
dolar objesini hafif sağ çek
User prompt
dolar y=600
User prompt
dolar y =700
User prompt
dolar y = 500
User prompt
dolar y= -100
User prompt
Dolar y=0
User prompt
dolar y=-2500
User prompt
dolar y =2000
User prompt
dolar yüksekligini geri al
User prompt
geri al
User prompt
dolar yükseklik 80
User prompt
dolar x = 1860
User prompt
dolar x = 1850
User prompt
dolar x=1900
User prompt
dolar x=2000
User prompt
dolar x=1000
User prompt
dolar x=-100
User prompt
dolar x=300
User prompt
dolarobject x=100
User prompt
100Dolar simili varlıgı tablo varlıgının tam altına yerleştir
User prompt
dolar objesini tablo objesinin altına koy
User prompt
100Dolar isimli varlıgı tablo nun altına koy
User prompt
100Dolar isimli bir varlık oluşturdum onu ekrana yerleştir
User prompt
tablo varlıgnın yüksekligini geri al
User prompt
yükseklik 50 olsun tabloo varlıgının
/**** 
* Plugins
****/ 
var tween = LK.import("@upit/tween.v1");
/**** 
* Classes
****/ 
// Candy object class
var CandyObject = Container.expand(function () {
	var self = Container.call(this);
	var objectGraphics = self.attachAsset('candy', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.visible = false; // Initially, the candy object is not visible
	self.onClick = function () {
		// Hide the candy object and show the clickable object
		self.visible = false;
		clickableObject.visible = true;
		// Increase score when clicked
		LK.setScore(LK.getScore() + 1);
		scoreTxt.setText(LK.getScore().toString());
	};
	self.down = function (x, y, obj) {
		self.onClick();
		// Add a click effect
		LK.effects.flashObject(self, 0xFFFFFF, 100);
		// Make the candy object reappear 0.1 seconds after being clicked
		tween(self, {
			alpha: 0
		}, {
			duration: 0,
			onFinish: function onFinish() {
				tween(self, {
					alpha: 1
				}, {
					duration: 100
				});
				self.visible = true;
			}
		});
	};
});
//<Assets used in the game will automatically appear here>
//<Write imports for supported plugins here>
// Clickable object class
var ClickableObject = Container.expand(function () {
	var self = Container.call(this);
	var objectGraphics = self.attachAsset('clickable', {
		anchorX: 0.5,
		anchorY: 0.5
	});
	self.onClick = function () {
		// Increase score when clicked
		LK.setScore(LK.getScore() + 1);
		scoreTxt.setText(LK.getScore().toString());
		// Hide the clickable object and show the candy object
		self.visible = false;
		candyObject.visible = true;
	};
	self.down = function (x, y, obj) {
		self.onClick();
		// Add a click effect
		LK.effects.flashObject(self, 0xFFFFFF, 100);
		// Make the clickable object reappear 0.1 seconds after being clicked
		tween(self, {
			alpha: 0
		}, {
			duration: 0,
			onFinish: function onFinish() {
				tween(self, {
					alpha: 1
				}, {
					duration: 100
				});
				self.visible = true;
			}
		});
	};
});
/**** 
* Initialize Game
****/ 
var game = new LK.Game({
	backgroundColor: 0x000000 //Init game with black background 
});
/**** 
* Game Code
****/ 
// Initialize score text
var scoreTxt = new Text2('0', {
	size: 150,
	fill: 0xFFFFFF
});
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
// Create clickable object
var clickableObject = new ClickableObject();
clickableObject.x = 2048 / 2; // Move the object to the center of the screen
clickableObject.y = 2732 / 2; // Keep the object vertically centered
game.addChild(clickableObject);
// Create candy object
var candyObject = new CandyObject();
candyObject.x = 2048 / 2; // Move the object to the center of the screen
candyObject.y = 2732 / 2;
game.addChild(candyObject);
// Create 'tablo' object
var tabloObject = game.addChild(LK.getAsset('tablo', {
	anchorX: 0.5,
	anchorY: 0.5
}));
tabloObject.x = 2048 - tabloObject.width / 2; // Move the object slightly to the left
tabloObject.y = 0 + tabloObject.height / 2 + 90;
// Create '100Dolar' object
var dolarObject = game.addChild(LK.getAsset('100Dolar', {
	anchorX: 0.5,
	anchorY: 0.5
}));
dolarObject.x = -100; // Position the object at x=-100
dolarObject.y = tabloObject.y + tabloObject.height / 2 + dolarObject.height / 2; // Position the object directly below the 'tablo' object
// Update function
game.update = function () {
	// Game logic updates
}; ===================================================================
--- original.js
+++ change.js
@@ -118,9 +118,9 @@
 var dolarObject = game.addChild(LK.getAsset('100Dolar', {
 	anchorX: 0.5,
 	anchorY: 0.5
 }));
-dolarObject.x = 300; // Position the object at x=300
+dolarObject.x = -100; // Position the object at x=-100
 dolarObject.y = tabloObject.y + tabloObject.height / 2 + dolarObject.height / 2; // Position the object directly below the 'tablo' object
 // Update function
 game.update = function () {
 	// Game logic updates
:quality(85)/https://cdn.frvr.ai/6766efa58ca6010c5bf77933.png%3F3) 
 pixel candy noel. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/6766f92f8ca6010c5bf779db.png%3F3) 
 pixel under tale text= ı need 100Candy
:quality(85)/https://cdn.frvr.ai/6766fae68ca6010c5bf779eb.png%3F3) 
 pixel text Sold
:quality(85)/https://cdn.frvr.ai/676702b58ca6010c5bf77a0e.png%3F3) 
 pixel text :Auto click
:quality(85)/https://cdn.frvr.ai/67672a298ca6010c5bf77ada.png%3F3) 
 pixel text tablo : I need 400Candy. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/67672bbc8ca6010c5bf77ae4.png%3F3) 
 pixel şekerli mavi tonlarında hafif karanlık tema lı arka plan. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/67672cc38ca6010c5bf77af7.png%3F3) 
 pixel kar tanesi
:quality(85)/https://cdn.frvr.ai/676734a88ca6010c5bf77b17.png%3F3) 
 pixel Ses açma kapama butonu
:quality(85)/https://cdn.frvr.ai/67673ec1f88468c7b50be385.png%3F3) 
 Pixel 2d Noel Baba Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
:quality(85)/https://cdn.frvr.ai/6769810b442c85aca6a8e4b0.png%3F3) 
 :quality(85)/https://cdn.frvr.ai/676981f8442c85aca6a8e4cb.png%3F3) 
 sade olsun Text pixel : Ineed 1000Candy