User prompt
Olusturulan düşman elipslerini siyah renk yap
User prompt
Düşman ve yapılan elipsleri biraz yukarı sabitle
User prompt
Elipsleri biraz daha büyült
User prompt
Elipsleri yönünü yan yap
User prompt
Elipslerin rengini siyah yap
User prompt
Elipslerin boylarını büyült
User prompt
Elipslerin konumunu biraz saga kaydır
User prompt
Oluşturulan elipsleri düşmanın biraz sag tarafına kaydır
User prompt
Biraz saga kaydır
User prompt
Oluşan elipsler 180 derece döndür ve sabitle
User prompt
Biraz saga kaydır ve büyült
User prompt
Biraz saga kaydır ve dikdörtgenleri elips yap
User prompt
İki dikdörtgen mesafesini biraz yükselt
User prompt
Düşmanın alt kısmına iki tane dikdörtgen ekle ve yürüme animasyonu ekle ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Düşman için yürüme animasyonu ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Düşman konum 550
User prompt
Düşman boyutunu 4 yap
User prompt
Düşman için sesler ver resim dosyasını ekle
User prompt
600 yap
User prompt
Düşmanı biraz daha aşagı indir
User prompt
Düşmanı ekledigim ikincı arkaplanın zeminine ekle
User prompt
Düşmanı biraz aşagı indir
User prompt
Yukarıya bir düşman ekle aşagı dogru nesne atsın ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Çok az yukarı
User prompt
Çok hafif sol yap
/**** * Plugins ****/ var tween = LK.import("@upit/tween.v1"); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x8B4513 }); /**** * Game Code ****/ var backgroundImage = game.attachAsset('background', { x: 0, y: 0, width: 2048, height: 2732 }); // Add new background layer var backgroundLayer = game.attachAsset('backgroundLayer', { x: 0, y: 0, width: 2100, height: 700 }); // Create ground terrain var ground = game.attachAsset('ground', { x: 0, y: 2682, // Position at bottom (2732 - 50 = 2682) width: 2048, height: 50 }); // Create and position player on the ground var player = game.attachAsset('player', { x: 2048 / 2, // Center horizontally y: 2682, // Position touching the ground scaleX: 1.0, scaleY: 1.0, anchorX: 0.5, anchorY: 1.0 }); // Scale player to 3.0 using tween animation tween(player, { scaleX: 3.0, scaleY: 3.0 }, { duration: 500, easing: tween.easeOut }); // Create white eyes on the player var leftEye = game.attachAsset('eyeWhite', { x: player.x - 50, y: player.y - 245, anchorX: 0.5, anchorY: 0.5 }); var rightEye = game.attachAsset('eyeWhite', { x: player.x + 10, y: player.y - 245, anchorX: 0.5, anchorY: 0.5 }); // Create black pupils inside the white eyes var leftPupil = game.attachAsset('eye', { x: player.x - 50, y: player.y - 245, anchorX: 0.5, anchorY: 0.5 }); var rightPupil = game.attachAsset('eye', { x: player.x + 10, y: player.y - 245, anchorX: 0.5, anchorY: 0.5 }); // Variables for player movement var playerSpeed = 8; var targetX = player.x; var isMoving = false; // Touch/mouse controls for player movement game.down = function (x, y, obj) { // Set target position to touch/click location targetX = x; isMoving = true; // Keep player within screen bounds if (targetX < 0) targetX = 0; if (targetX > 2048) targetX = 2048; }; // Update player movement game.update = function () { if (isMoving) { // Calculate distance to target var distance = targetX - player.x; // Move towards target if (Math.abs(distance) > 5) { if (distance > 0) { player.x += playerSpeed; } else { player.x -= playerSpeed; } } else { // Snap to target when close enough player.x = targetX; isMoving = false; } // Keep player within bounds if (player.x < 0) player.x = 0; if (player.x > 2048) player.x = 2048; } // Update eye positions to follow player leftEye.x = player.x - 50; leftEye.y = player.y - 245; rightEye.x = player.x + 10; rightEye.y = player.y - 245; leftPupil.x = player.x - 50; leftPupil.y = player.y - 245; rightPupil.x = player.x + 10; rightPupil.y = player.y - 245; };
===================================================================
--- original.js
+++ change.js
@@ -55,28 +55,28 @@
});
// Create white eyes on the player
var leftEye = game.attachAsset('eyeWhite', {
x: player.x - 50,
- y: player.y - 240,
+ y: player.y - 245,
anchorX: 0.5,
anchorY: 0.5
});
var rightEye = game.attachAsset('eyeWhite', {
x: player.x + 10,
- y: player.y - 240,
+ y: player.y - 245,
anchorX: 0.5,
anchorY: 0.5
});
// Create black pupils inside the white eyes
var leftPupil = game.attachAsset('eye', {
x: player.x - 50,
- y: player.y - 240,
+ y: player.y - 245,
anchorX: 0.5,
anchorY: 0.5
});
var rightPupil = game.attachAsset('eye', {
x: player.x + 10,
- y: player.y - 240,
+ y: player.y - 245,
anchorX: 0.5,
anchorY: 0.5
});
// Variables for player movement
@@ -114,12 +114,12 @@
if (player.x > 2048) player.x = 2048;
}
// Update eye positions to follow player
leftEye.x = player.x - 50;
- leftEye.y = player.y - 240;
+ leftEye.y = player.y - 245;
rightEye.x = player.x + 10;
- rightEye.y = player.y - 240;
+ rightEye.y = player.y - 245;
leftPupil.x = player.x - 50;
- leftPupil.y = player.y - 240;
+ leftPupil.y = player.y - 245;
rightPupil.x = player.x + 10;
- rightPupil.y = player.y - 240;
+ rightPupil.y = player.y - 245;
};
\ No newline at end of file
3d köstebek. In-Game asset. 2d. High contrast. No shadows
Elinde havuç olan kızgın bir çiftçi. Karakter ayakkabısı siyah
Havuç. In-Game asset. 2d. High contrast. No shadows
Bomba. In-Game asset. 2d. High contrast. No shadows
Alev. In-Game asset. 2d. High contrast. No shadows
Agız. In-Game asset. 2d. High contrast. No shadows
Kalp 3d. In-Game asset. 2d. High contrast. No shadows