User prompt
aşşağı çek gene tablo varlıgını
User prompt
tekrar hafif aşşağı çek tablo varlıgını
User prompt
hafif aşşağı çek tablo varlıgını
User prompt
tablo varlıgını kuzey noktasına çek
User prompt
2 birim üst e çek tablo varlıgını
User prompt
hafif ekranda gözükücek şekilde sola çek tablo varlıgını
User prompt
tablo varlıgını sağ kısma çek
User prompt
tablo isimli varlıgı oyuna ekle
User prompt
orataya yerleştir
User prompt
tablo cismini sol ortaya koy
User prompt
candy e her tıkladıgımda puanı 1 arttır
User prompt
tıklanılabilir cisme her tıkladıgımda üst deki sayı miktarı 1 artsın
User prompt
tıklanılabilir cismi ortaya cek
User prompt
tıklanılabilir cismih hafif üst e yerleştir
User prompt
candy ben her tıklanılabilir cisme tıkladıgım da o da kaybolup geri gelsin
User prompt
candy i ortaya al
User prompt
tıklanılabilir cisime her tıkladıgımda kaybolup geri gelicek
User prompt
tıklanılabilir cisime tıkladıktan sonra 0.1 saniye sonra tekrar gözüksün ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
tıklanılabilir cisime her tıkladıgımda candy cismi gözükücek ve tıklanılabilir cisim kaybolucak bu döngü her tıkladıgımda gerçekleşebilir
User prompt
candy cismini sol köşeye al
User prompt
candy cismni ekrana ekle
User prompt
tıklanılabilir cis me her tıkladıgım da tıklanma effekt i ver
User prompt
tıklanılıabilir cisinin hareket kabiliyeti olamaz
User prompt
orataya koy tıklanabilir cismi
User prompt
x:0 y:0 tıklanabilir cisim konum
/**** * 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; }; self.down = function (x, y, obj) { self.onClick(); // Add a click effect LK.effects.flashObject(self, 0xFFFFFF, 100); }; }); //<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()); // 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 }); } }); }; }); /**** * 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; game.addChild(clickableObject); // Create candy object var candyObject = new CandyObject(); candyObject.x = 0; // Move the object to the top left corner of the screen candyObject.y = 0; game.addChild(candyObject); // Update function game.update = function () { // Game logic updates };
===================================================================
--- original.js
+++ change.js
@@ -1,5 +1,10 @@
/****
+* Plugins
+****/
+var tween = LK.import("@upit/tween.v1");
+
+/****
* Classes
****/
// Candy object class
var CandyObject = Container.expand(function () {
@@ -40,8 +45,21 @@
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
+ });
+ }
+ });
};
});
/****
pixel candy noel. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel under tale text= ı need 100Candy
pixel text Sold
pixel text :Auto click
pixel text tablo : I need 400Candy. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
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.
pixel kar tanesi
pixel Ses açma kapama butonu
Pixel 2d Noel Baba Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
sade olsun Text pixel : Ineed 1000Candy