User prompt
boyut 6 kere küçüldükten sonra dahada küçülmeyecek
User prompt
spawner ekranda gözükecek
Code edit (1 edits merged)
Please save this source code
User prompt
yazının arka plan rengi beyaz olacak
User prompt
siyahla yazacak
User prompt
5 saniye değil 10 saniye ekranda kalsın
Code edit (1 edits merged)
Please save this source code
User prompt
mesaj ekran katmanının en üstünde olacak
User prompt
oyun ilk açıldığında ekranda 5 saniye boyunca "Find the magnifying glass and move on to the next levels. Levels will become increasingly difficult!" yazacak
User prompt
her 10 skorda değil her 6 skorda
User prompt
Please fix the bug: 'LK.pauseGame is not a function' in or related to this line: 'LK.pauseGame();' Line Number: 55
User prompt
Please fix the bug: 'game.pause is not a function' in or related to this line: 'game.pause();' Line Number: 55
User prompt
Please fix the bug: 'LK.pauseGame is not a function' in or related to this line: 'LK.pauseGame();' Line Number: 55
User prompt
Please fix the bug: 'game.pause is not a function' in or related to this line: 'game.pause();' Line Number: 55
User prompt
Please fix the bug: 'LK.pause is not a function' in or related to this line: 'LK.pause();' Line Number: 55
User prompt
Please fix the bug: 'game.pause is not a function' in or related to this line: 'game.pause();' Line Number: 55
User prompt
oyun ilk açıldığında oyunun nasıl oynanacğaını öğreten menü açılacak herhangi bir yere tıklayınca oyun başlayacak. menüde tıklanması gereken item3 ün resmi gösterilecek ve bu item3 git gide küçülüğü yazacak. metin ingilizce olacak.
User prompt
item3, uygulamanın kendisinde olan durdurma tuşunun üzerinde spawn olmayacak çünkü oraya asla tıklanmıyor
User prompt
her 2 skorda değil her 10 skorda
User prompt
item3 ekranın üst kısmına ışınlanmayacak
User prompt
her 10 skor değil her 2 skorda
User prompt
%50 sine düşmesin %90 ına düşsün
User prompt
her 10 skor değil her 2 skor olsun
User prompt
her 10 skorda item3 boyutu kendi boyutunun yüzde 50 sine düşecek
Code edit (1 edits merged)
Please save this source code
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ var currentLevel = 1; var messageTxt = new Text2('Find the magnifying glass and move on to the next levels.\n Levels will become increasingly difficult!', { size: 50, fill: 0x000000, backgroundColor: 0xFFFFFF }); messageTxt.anchor.set(1.29, 2); messageTxt.x = 2048 / 2; messageTxt.y = 2732 / 2; LK.gui.top.addChild(messageTxt); LK.setTimeout(function () { messageTxt.destroy(); }, 10000); var invisibleArea = game.attachAsset('invisibleArea', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 }); game.addChild(invisibleArea); var background = game.attachAsset('back8', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 - 500, scaleX: 1, scaleY: 1 }); var spawner = game.attachAsset('spawner', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 }); var item3 = game.attachAsset('item3', { anchorX: 0.5, anchorY: 0.5, x: Math.random() * 2048, y: Math.random() * 2732 }); game.setChildIndex(item3, game.children.length - 1); var score = 0; var scoreTxt = new Text2('Score: 0', { size: 150, fill: 0xFFFFFF }); scoreTxt.anchor.set(0.5, -9.9); LK.gui.top.addChild(scoreTxt); item3.down = function (x, y, obj) { // Get the new position of item3 within the invisibleArea var newX, newY; do { newX = invisibleArea.x + Math.random() * invisibleArea.width - invisibleArea.width / 2; newY = invisibleArea.y + Math.random() * invisibleArea.height - invisibleArea.height / 2; } while (newY < 0 || newY > 2732 - 200); // Change the position of item3 item3.x = newX; item3.y = newY; // Change the background image var backgrounds = ['back1', 'back2', 'back3', 'back4', 'back5', 'back6', 'back7', 'back8', 'back9']; var randomBackground = backgrounds[Math.floor(Math.random() * backgrounds.length)]; background.destroy(); background = game.attachAsset(randomBackground, { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 - 500, scaleX: 1, scaleY: 1 }); game.setChildIndex(item3, game.children.length - 1); // Increase and update score score++; scoreTxt.setText('Score: ' + score); // Reduce the size of item3 by 90% every 6 scores if (score % 6 == 0 && score <= 36) { item3.scaleX *= 0.9; item3.scaleY *= 0.9; } }; LK.on('pause', function () { item3.visible = false; }); LK.on('resume', function () { item3.visible = true; });
===================================================================
--- original.js
+++ change.js
@@ -82,9 +82,9 @@
// Increase and update score
score++;
scoreTxt.setText('Score: ' + score);
// Reduce the size of item3 by 90% every 6 scores
- if (score % 6 == 0) {
+ if (score % 6 == 0 && score <= 36) {
item3.scaleX *= 0.9;
item3.scaleY *= 0.9;
}
};
dağınık bir yatak odası, odanın içinden görünüm 3d renkli
dağınık bir oturma odası, odanın içinden görünüm. 3d renkli anime, çizgi film
dağınık bir mutfak, odanın içinden görünüm. 3d renkli anime, çizgi film
dağınık bir mutfak, odanın içinden görünüm. 3d renkli anime, çizgi film
dağınık bir oturma odası, odanın içinden görünüm. 3d renkli anime, çizgi film
dağınık bir yatak odası, odanın içinden görünüm 3d renkli, çizgi film
dağınık bir yatak odası, odanın içinden görünüm 3d renkli, çizgi film