User prompt
Reith parası 1000 olsun her satın altında bir onceki fiyatın 2katını istesin
User prompt
Rebit parası 25
User prompt
Oyununa upraded yanına kırmızı renkte bisey ekle rebith her rebit atında herkesin sifirlansın ama her rebith atında 2 katta fazla tıklamayla basla
User prompt
Alt tarafa upgraded yazan Bi tuş koy 50 parayla satın alınsın her satın alındında 1 rer 1rer tıklamanız artsın her satın alındında bir onceki fiyatın 1.5 katını isten noktadan sonrası gösterme
User prompt
Ekrandan beyaz yuvarlak Topu sil
User prompt
Topu yok et
User prompt
Topu yönelt
User prompt
Topu buyult ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Her tıladında usteki puan sayıcı 1 rer 1rer artsın
User prompt
Puan alakalı hersek sil
User prompt
Her tıladkmız 1 rer 1rer puan gelsin
User prompt
Şok dalgasını küçült
User prompt
Şok dalgasını 2kat küçült beyaz tpu 2 kat buyut
User prompt
Şok dalgası kurultay ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
Pulse Wave
Initial prompt
Arka plan siyah olsun ortada beyaz bisey olsun her tıklayınca etrafa dolgu beyaz şok dalgası yaysın
/**** * Plugins ****/ var tween = LK.import("@upit/tween.v1"); /**** * Classes ****/ var CentralObject = Container.expand(function () { var self = Container.call(this); var circleGraphics = self.attachAsset('circle', { anchorX: 0.5, anchorY: 0.5, scaleX: 4, scaleY: 4 }); // Pulse animation for the central object function pulse() { tween(circleGraphics, { scaleX: 1.3, scaleY: 1.3 }, { duration: 200, easing: tween.easeOut, onFinish: function onFinish() { tween(circleGraphics, { scaleX: 1, scaleY: 1 }, { duration: 200, easing: tween.easeIn }); } }); } self.down = function (x, y, obj) { pulse(); createWave(self.x, self.y); LK.getSound('pulse').play(); }; return self; }); var Wave = Container.expand(function () { var self = Container.call(this); var waveGraphics = self.attachAsset('wave', { anchorX: 0.5, anchorY: 0.5, alpha: 0.8, scaleX: 0.25, scaleY: 0.25 }); self.fadeOut = function () { tween(waveGraphics, { alpha: 0, scaleX: 12.5, scaleY: 12.5 }, { duration: 2500, easing: tween.easeOut, onFinish: function onFinish() { self.destroy(); var index = waves.indexOf(self); if (index > -1) { waves.splice(index, 1); } } }); }; return self; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 }); /**** * Game Code ****/ // Game dimensions var gameWidth = 2048; var gameHeight = 2732; // Set background color to black game.setBackgroundColor(0x000000); // Array to store all active waves var waves = []; // Score tracking var score = 0; // Create central object var centralObject = new CentralObject(); centralObject.x = gameWidth / 2; centralObject.y = gameHeight / 2; game.addChild(centralObject); // Create score text var scoreText = new Text2("0", { size: 150, fill: 0xFFFFFF }); scoreText.anchor.set(0.5, 0); LK.gui.top.addChild(scoreText); // Function to create a new wave function createWave(x, y) { var wave = new Wave(); wave.x = x; wave.y = y; wave.fadeOut(); waves.push(wave); game.addChild(wave); // Increment score and update score display score += 1; scoreText.setText(score.toString()); } // Handle tap anywhere on the screen game.down = function (x, y, obj) { // Don't create waves for taps on the central object // since the central object handles that itself if (!centralObject.getBounds().contains(x, y)) { createWave(x, y); // Play pulse sound LK.getSound('pulse').play(); } }; // Start background music LK.playMusic('ambient', { fade: { start: 0, end: 0.3, duration: 1000 } }); // Pulse the central object periodically var pulseTimer = LK.setInterval(function () { // Trigger a small pulse effect on the central object tween(centralObject, { scaleX: 1.15, scaleY: 1.15 }, { duration: 400, easing: tween.easeOut, onFinish: function onFinish() { tween(centralObject, { scaleX: 1, scaleY: 1 }, { duration: 400, easing: tween.easeIn }); } }); }, 6000); // Update function game.update = function () { // No need for additional updates as tweens handle the animations };
===================================================================
--- original.js
+++ change.js
@@ -10,10 +10,10 @@
var self = Container.call(this);
var circleGraphics = self.attachAsset('circle', {
anchorX: 0.5,
anchorY: 0.5,
- scaleX: 2,
- scaleY: 2
+ scaleX: 4,
+ scaleY: 4
});
// Pulse animation for the central object
function pulse() {
tween(circleGraphics, {