User prompt
ekrana koyduğun resi olan item3 ün boyutunu 300x300 yap
User prompt
ekrana ayrıyetten item3 ü resim olarak koy tıklanmayacak
Code edit (3 edits merged)
Please save this source code
User prompt
oyuna 30 saniye sayaç ekle
Code edit (1 edits merged)
Please save this source code
User prompt
alt tarafa score ekle
User prompt
item1 e de aynı item3 deki gibi tıklayabileceğim
User prompt
item3 e tıkladığımda item3 veya item1 olmak üzere eşya rastgele olarak dğeişecek
User prompt
düzelmedi her yeni bölümde item3 her zaman görünür kalacak
User prompt
Please fix the bug: 'The supplied DisplayObject must be a child of the caller' in or related to this line: 'game.setChildIndex(item3, game.children.length - 1);' Line Number: 43
User prompt
arka plan değişince item3 görünmüyor bunu düzelt
User prompt
item e her tıkladığımda background değişecek "back1,2,3,4,5,6,7,8,9" bunlardan rastgele biri olacak
User prompt
item e her tıkladığımda background değişecek "back1,2,3,4,5,6,7,8,9" bunlardan rastgele biri olacak
User prompt
"spawner" assetsini görünmez yap
User prompt
item3 spawnerin içinde kalacak her zaman. ben tıkladığımda konumu rastgele değişecek, bunla ilgili olan eski kodları tamamen silip yenisini yaz ve aynı olmasın farklılıklar yap
User prompt
her levelde item, ekranın rastgele bir yerine ışınlanacak
User prompt
item1 değiş item3
User prompt
her levelde yeri değişecek itemin, kaybolmayacak !
User prompt
item sadece spawnerin içinde spawn olabilecek
User prompt
item e tıklayınca kaybolmasın "spawner" in herhangi bir yerine spawn olsun
Code edit (1 edits merged)
Please save this source code
User prompt
itemler sadece "spawner" resminin içinde spawn olacak ekranın başka tarafında spawn olmayacak !
User prompt
hani ? dediğimi yapmadın
User prompt
item1'in konumu her zaman spawnerin içinde olacak
User prompt
arka plan resimleri her zaman "spawner" resminin arkasında kalacak (katman bakımından)
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ var currentLevel = 1; var spawner = game.attachAsset('spawner', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2, visible: false }); game.addChild(spawner); var background = game.attachAsset('back8', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 - 500, scaleX: 1, scaleY: 1 }); var item3 = game.attachAsset('item3', { anchorX: 0.5, anchorY: 0.5, x: Math.random() * 2048, y: Math.random() * 2732, width: 300, height: 300 }); game.setChildIndex(item3, game.children.length - 1); var score = 0; var scoreTxt = new Text2('Score: 0', { size: 150, fill: 0xFFFFFF }); scoreTxt.anchor.set(1.3, -9.9); LK.gui.top.addChild(scoreTxt); // Initialize a 30 second timer var timer = 30; var timerTxt = new Text2('Time: 30', { size: 150, fill: 0xFFFFFF }); timerTxt.anchor.set(-0.2, -9.9); LK.gui.top.addChild(timerTxt); // Update the timer every second LK.setInterval(function () { timer--; timerTxt.setText('Time: ' + timer); if (timer <= 0) { LK.showGameOver(); } }, 1000); // Remove the down event from item3 to make it non-interactive item3.down = null;
===================================================================
--- original.js
+++ change.js
@@ -28,9 +28,11 @@
var item3 = game.attachAsset('item3', {
anchorX: 0.5,
anchorY: 0.5,
x: Math.random() * 2048,
- y: Math.random() * 2732
+ y: Math.random() * 2732,
+ width: 300,
+ height: 300
});
game.setChildIndex(item3, game.children.length - 1);
var score = 0;
var scoreTxt = new Text2('Score: 0', {
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