User prompt
spawner ekranın üstünde kalsın
User prompt
düzelt bu hatayı
User prompt
spawner gözükecek ve sabit olarak kalacak sürekli ekranda gözükecek
User prompt
ekrana spawneri ekle
User prompt
Please fix the bug: 'item1 is not defined' in or related to this line: 'item1.down = function (x, y, obj) {' Line Number: 37
Code edit (1 edits merged)
Please save this source code
User prompt
ekranda sadece item1 spawn olsun
User prompt
Please fix the bug: 'ekran is not defined' in or related to this line: 'var item3 = game.attachAsset('item3', {' Line Number: 46
User prompt
"ekran" assetsinin adını "spawner"" yap
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'x')' in or related to this line: 'var item3 = game.attachAsset('item3', {' Line Number: 28
User prompt
EĞER önceki güncellemeye tıklıyorsam eski yazdığın kodları sil
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'x')' in or related to this line: 'var item3 = game.attachAsset('item3', {' Line Number: 28
User prompt
item1, item2 ve item3 sadece "ekran" assetsi üzerinde spawn olacak
User prompt
ekranı biraz yukarı taşı çok az
User prompt
item1 e tıklayınca "ekran"assetsi kayboluyor
User prompt
item2 ye tıklayınca kayboluyor fakat ben yeni itemlerin çıkmasını istiyorum
Code edit (1 edits merged)
Please save this source code
User prompt
item2 sadece "ekran" assetsinde spawn olacak
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'width')' in or related to this line: 'var item1 = game.attachAsset('item1', {' Line Number: 48
User prompt
itemler sadece "ekran" assetinin üzerinde spawn olacak
User prompt
rastgele bir ogeye değiştirmeyecek "item1", "item2" veya "item3" arasında rastgele değişim olacak
User prompt
item1 e tıklayınca item2 veya item3 e dönüşecek ve bu sürekli döngüde olacak aynı şekilde diğer itemelre tıklayıncada rastgele bir item assetsine dönüşecek
User prompt
item1 e tıklayınca item2 ye dönüşsün
User prompt
item01 e her tıkladığımda item1, item2 veya item3 olacak şekilde değişecek
User prompt
"ekran" ı görünmeez yap
/**** * 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: 0 }); 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 item1 = game.attachAsset('item1', { anchorX: 0.5, anchorY: 0.5, x: Math.random() * 2048, y: Math.random() * 2732 }); item1.down = function (x, y, obj) { currentLevel = Math.floor(Math.random() * 9) + 1; // Generate a random number between 1 and 9 var newBackground = 'back' + currentLevel; game.removeChild(background); background = game.attachAsset(newBackground, { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 / 2 - 500, scaleX: 1, scaleY: 1 }); // Change the position of item1 item1.x = Math.random() * 2048; item1.y = Math.random() * 2732; game.addChild(item1); };
===================================================================
--- original.js
+++ change.js
@@ -12,9 +12,9 @@
var spawner = game.attachAsset('spawner', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
- y: 2732 / 2
+ y: 0
});
game.addChild(spawner);
var background = game.attachAsset('back8', {
anchorX: 0.5,
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