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
@@ -79,40 +79,8 @@
/****
* Game Code
****/
-function _toConsumableArray(r) {
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
-}
-function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
-}
-function _unsupportedIterableToArray(r, a) {
- if (r) {
- if ("string" == typeof r) {
- return _arrayLikeToArray(r, a);
- }
- var t = {}.toString.call(r).slice(8, -1);
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
- }
-}
-function _iterableToArray(r) {
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) {
- return Array.from(r);
- }
-}
-function _arrayWithoutHoles(r) {
- if (Array.isArray(r)) {
- return _arrayLikeToArray(r);
- }
-}
-function _arrayLikeToArray(r, a) {
- (null == a || a > r.length) && (a = r.length);
- for (var e = 0, n = Array(a); e < a; e++) {
- n[e] = r[e];
- }
- return n;
-}
var background = game.attachAsset('background', {
anchorX: 0.0,
anchorY: 0.0
});
@@ -254,13 +222,11 @@
scoreTxt.setText(score);
// Save the score to the leaderboard
storage.leaderboard = storage.leaderboard || [];
storage.leaderboard.push(score);
- storage.leaderboard = Array.from(storage.leaderboard).filter(function (v, i, a) {
- return a.indexOf(v) === i;
- }).sort(function (a, b) {
+ storage.leaderboard = Array.from(new Set(storage.leaderboard)).sort(function (a, b) {
return b - a;
- }).slice(0, 10);
+ });
if (score > playerHighScore) {
storage.playerHighScore = score;
}
}