User prompt
tabloyu biraz yukarı taşı
User prompt
tabloyu biraz yukarı taşı
User prompt
tabloyu biraz yukarı taşı
User prompt
tabloyu biraz yukarı taşı
User prompt
tabloyu biraz yukarı taşı
User prompt
2x tabloyu biraz yukarı taşı
User prompt
tabloyu biraz yukarı taşı
User prompt
tabloyu biraz yukarı taşı
User prompt
tabloyu biraz yukarı taşı
User prompt
tabloyu tuşların konumuna agöre ortala
User prompt
yazı fontunu biraz küçült
User prompt
tablo nun yazı fontunu 2 katına çıkar
User prompt
yazı fontunu büyüt ve sadece your high score yazısı kalsın
User prompt
liderlik tablosunu sil sadece your high score kalsın
User prompt
Please fix the bug: 'TypeError: Set is not a constructor' in or related to this line: 'storage.leaderboard = Array.from(new Set(storage.leaderboard)).sort(function (a, b) {' Line Number: 243
User prompt
bunun sağlanması için gerekli kodları değiştir
User prompt
Please fix the bug: 'TypeError: Set is not a constructor' in or related to this line: 'storage.leaderboard = Array.from(new Set(storage.leaderboard)).sort(function (a, b) {' Line Number: 275
User prompt
Please fix the bug: 'TypeError: Set is not a constructor' in or related to this line: 'storage.leaderboard = _toConsumableArray(new Set(storage.leaderboard)).sort(function (a, b) {' Line Number: 275
User prompt
Please fix the bug: 'TypeError: Set is not a constructor' in or related to this line: 'storage.leaderboard = Array.from(new Set(storage.leaderboard)).sort(function (a, b) {' Line Number: 243
User prompt
ldierlik tablosunda sadece en yüksek puan yazılacak yani 10 yaparsam sıralama 10,9,8 olmayacak 10,5,4 olacak
User prompt
liderlik tablosundaki puanları sıfırla
User prompt
tuşları çok az yukarı al
User prompt
liderlik tablosunu biraz sağa taşı
User prompt
tuşları biraz sola al
User prompt
liderlik tablosunu biraz sağa taşı
===================================================================
--- original.js
+++ change.js
@@ -119,15 +119,15 @@
});
}, 200);
// Initialize buttons
var buttonUp = new Button();
-buttonUp.x = 1424; // Move button slightly to the left
-buttonUp.y = 2732 - 650; // Move button slightly upwards
+buttonUp.x = 1024;
+buttonUp.y = 2732 - 600; // Position at the bottom of the screen
buttonUp.scale.set(2); // Increase the size of the button
game.addChild(buttonUp);
var buttonDown = new Button();
-buttonDown.x = 1424; // Move button slightly to the left
-buttonDown.y = 2732 - 350; // Move button slightly upwards
+buttonDown.x = 1024;
+buttonDown.y = 2732 - 300; // Position at the bottom of the screen
buttonDown.scale.set(2); // Increase the size of the button
buttonDown.rotation = Math.PI; // Rotate the button by 180 degrees
game.addChild(buttonDown);
// Initialize obstacles array
@@ -141,17 +141,17 @@
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
// Display leaderboard
var playerHighScore = storage.playerHighScore || 0;
-var highScoreTxt = new Text2('Your High Score: ' + playerHighScore, {
- size: 100,
- // Increased font size from 80 to 100
+var leaderboardTxt = new Text2('Your High Score: ' + playerHighScore, {
+ size: 80,
+ // Increased font size from 50 to 80
fill: 0xFFFFFF
});
-highScoreTxt.anchor.set(0, 0);
-highScoreTxt.x = buttonUp.x - 1300; // Move high score text slightly to the right
-highScoreTxt.y = buttonUp.y - 200; // Move high score text slightly upwards
-game.addChild(highScoreTxt);
+leaderboardTxt.anchor.set(0, 0);
+leaderboardTxt.x = buttonUp.x - 200; // Position leaderboard to the left of the buttons
+leaderboardTxt.y = buttonUp.y - 100; // Align vertically with the buttons
+game.addChild(leaderboardTxt);
// Function to create obstacles
function createObstacle() {
var lanes = [-450, 0, 450];
var selectedLanes = [lanes[Math.floor(Math.random() * lanes.length)]];