Code edit (16 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
newarea gözükmüyor
User prompt
newarea katman olarak en üstte duracak
User prompt
"newarea" resmi ekranda 10 saniye boyunca gözüksün
User prompt
ekranda 10 saniye boyunca duracak bir resim istiyorum
User prompt
item3 e her tıkladığımda konumu değişecek ekranda rastgele bir yere
User prompt
item3 e her tıkladığımda konumu değişecek ekranda rastgele bir yere ama çok yukarıda spawn olmasın
User prompt
item3 , 6 kere küçüldükten sonra daha da küçülmeyecek
User prompt
spawneri sil
/**** * 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\n move on to the next levels.\n Levels will become \n increasingly difficult!', { size: 100, fill: 0x000000, backgroundColor: 0xFFFFFF }); messageTxt.anchor.set(1.3, 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 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 screen var newX, newY; do { newX = Math.random() * 2048; newY = Math.random() * 2732; } 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
@@ -8,14 +8,14 @@
/****
* Game Code
****/
var currentLevel = 1;
-var messageTxt = new Text2('Find the magnifying glass and\n move on to the next levels.\n Levels will become increasingly difficult!', {
- size: 50,
+var messageTxt = new Text2('Find the magnifying glass and\n move on to the next levels.\n Levels will become \n increasingly difficult!', {
+ size: 100,
fill: 0x000000,
backgroundColor: 0xFFFFFF
});
-messageTxt.anchor.set(1.29, 2);
+messageTxt.anchor.set(1.3, 2);
messageTxt.x = 2048 / 2;
messageTxt.y = 2732 / 2;
LK.gui.top.addChild(messageTxt);
LK.setTimeout(function () {
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