User prompt
Cheat Panel'i büyüt
User prompt
kutu açılma animasyonu yap. ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Market sekmesini büyüt
User prompt
Kutuların açılış fiyatını düşür
User prompt
Satın alma kısmına 2500 para karşılığnda 1 dakika boyunca 10x şans şeyi ekle. ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Markette 2 bölüm olsun satma kısmı ve alma kısmı. Şimdilik alma kısmı boş kalsın
User prompt
Oyuna market ekle
User prompt
Kutulara göre şansda artsın
User prompt
Cheat paneldeki kırmızı düğme 9999 para vermek yerine 99999 para versin
User prompt
Cheat panel ben kapatana kadar kapanmasın.
User prompt
Collection statistics kısmına nadirliklerin çıkma oranını "%" ile yaz
User prompt
Bu Cheat Panel'deki para sıfırlama düğmesine basınca kasalarda sıfırlansın (Ama istatislikler kalsın). ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Cheat Panel'e bir kırmızı tuş daha ekle ve oda tüm paramızı sıfırlasın.
User prompt
Bu paneldeki kırmızı düğme paramızı 9999 yapmaktansa paramıza 9999 eklesin.
User prompt
alta bir tane düğme yap, o düğmeye bastığımızda şifre paneli açılsın (sadece rakamlardan oluşan) oradaki rakamlardan sıra ile "4154" rakamlarına bastığımızda bir panel açılsın. Ordaki paneldeki kırmızı tuşa basınca paramızı 9999 olarak değiştirsin.
User prompt
hala yazı yazılmıyor, ve kodu "Hasir Sapka" olarak değiştir
User prompt
"Enter Cheat Code" yazsını biraz üste al ve yazı yazılmıyor, klavye ile yazı yazılabilir yap.
User prompt
Bir tane düğme yap, o düğmeye tıkladığımızda bir kod yeri açılsın, oraya "Hasır Sapka" yazdığımızda paramız 9999 olsun. ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'fill')' in or related to this line: 'cheatInputField.style.fill = 0xFFFFFF;' Line Number: 679
User prompt
Yazı yazılmıyor ve soldaki "Hasır Şapka" yazısını kaldır
User prompt
Bir tane kod girme yeri yap ve oraya "Hasır Şapka" yazdığımızda paramız 999999 olsun ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Luck Boost'un süresini 1 dakika yap ve yazıyı "Luck Boost: 500 Coins" olarak değiştir.
User prompt
oyuna para karşılığında belli bir süre şansımızı 2 katına çıkaracak bir şey ekle. ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
"Collection Statistics" kısmını açtığımda ilk sandığn görünümü büyüyor. Bunu düzeltip bunun yerine siyah bir arka plan yapar mısın?
User prompt
kasadan eşyalar çıkınca üstünde nadirliğine göre nadirliği yazsın.
/**** * Plugins ****/ var tween = LK.import("@upit/tween.v1"); var storage = LK.import("@upit/storage.v1"); /**** * Classes ****/ var CheatPanel = Container.expand(function () { var self = Container.call(this); var background = self.attachAsset('cheatPanel', { anchorX: 0.5, anchorY: 0.5 }); background.tint = 0x000000; var titleText = new Text2('Cheat Panel', { size: 60, fill: 0xFFFFFF }); titleText.anchor.set(0.5, 0.5); titleText.y = -150; self.addChild(titleText); var moneyButton = self.attachAsset('moneyCheatButton', { anchorX: 0.5, anchorY: 0.5 }); moneyButton.y = 0; var moneyButtonText = new Text2('9999 Coins', { size: 40, fill: 0xFFFFFF }); moneyButtonText.anchor.set(0.5, 0.5); moneyButton.addChild(moneyButtonText); moneyButton.interactive = true; moneyButton.buttonMode = true; var resetButton = self.attachAsset('resetMoneyButton', { anchorX: 0.5, anchorY: 0.5 }); resetButton.y = 100; var resetButtonText = new Text2('Reset Money', { size: 40, fill: 0xFFFFFF }); resetButtonText.anchor.set(0.5, 0.5); resetButton.addChild(resetButtonText); resetButton.interactive = true; resetButton.buttonMode = true; var closeButton = new Text2('X', { size: 80, fill: 0xFF0000 }); closeButton.anchor.set(0.5, 0.5); closeButton.x = 250; closeButton.y = -150; closeButton.interactive = true; closeButton.buttonMode = true; self.addChild(closeButton); moneyButton.up = function () { coins += 9999; storage.coins = coins; coinsText.setText('Coins: ' + coins); self.destroy(); }; resetButton.up = function () { coins = 0; storage.coins = coins; coinsText.setText('Coins: ' + coins); self.destroy(); }; closeButton.up = function () { self.destroy(); }; return self; }); var CollectionView = Container.expand(function () { var self = Container.call(this); var background = self.attachAsset('openButton', { anchorX: 0.5, anchorY: 0.5, scaleX: 5, scaleY: 14 }); background.tint = 0x000000; self.addChild(background); var titleText = new Text2('Collection Statistics', { size: 80, fill: 0xFFFFFF }); titleText.anchor.set(0.5, 0.5); titleText.y = -700; self.addChild(titleText); var closeButton = new Text2('X', { size: 100, fill: 0xFF0000 }); closeButton.anchor.set(0.5, 0.5); closeButton.x = 500; closeButton.y = -700; closeButton.interactive = true; closeButton.buttonMode = true; self.addChild(closeButton); self.setup = function (collectionData) { var rarities = ['common', 'uncommon', 'rare', 'epic', 'legendary']; var rarityColors = { common: 0x808080, uncommon: 0x32cd32, rare: 0x0000ff, epic: 0x8b008b, legendary: 0xff8c00 }; var rarityCounts = {}; for (var i = 0; i < rarities.length; i++) { rarityCounts[rarities[i]] = 0; } for (var key in collectionData) { var parts = key.split('_'); if (parts.length === 2) { var rarity = parts[1]; if (rarityCounts[rarity] !== undefined) { rarityCounts[rarity] += collectionData[key]; } } } for (var i = 0; i < rarities.length; i++) { var rarity = rarities[i]; var count = rarityCounts[rarity]; var textColor = rarity === 'common' ? 0xFFFFFF : rarityColors[rarity]; var rarityText = new Text2(rarity.toUpperCase() + ': ' + count, { size: 60, fill: textColor }); rarityText.anchor.set(0.5, 0.5); rarityText.y = -400 + i * 120; self.addChild(rarityText); } }; closeButton.down = function () { tween(closeButton, { scaleX: 0.9, scaleY: 0.9 }, { duration: 100 }); }; closeButton.up = function () { tween(closeButton, { scaleX: 1, scaleY: 1 }, { duration: 100 }); self.destroy(); }; return self; }); var MysteryBox = Container.expand(function () { var self = Container.call(this); self.boxType = 'basic'; self.cost = 0; self.isOpening = false; self.rarityWeights = { basic: { common: 70, uncommon: 25, rare: 4, epic: 0.9, legendary: 0.1 }, silver: { common: 50, uncommon: 35, rare: 10, epic: 4, legendary: 1 }, gold: { common: 30, uncommon: 40, rare: 20, epic: 8, legendary: 2 }, diamond: { common: 10, uncommon: 30, rare: 35, epic: 20, legendary: 5 }, legendary: { common: 0, uncommon: 20, rare: 40, epic: 30, legendary: 10 } }; self.itemValues = { common: 10, uncommon: 25, rare: 100, epic: 500, legendary: 2000 }; self.setup = function (type, cost) { self.boxType = type; self.cost = cost; var boxGraphics = self.attachAsset(type + 'Box', { anchorX: 0.5, anchorY: 0.5 }); self.interactive = true; self.buttonMode = true; }; self.getRarity = function () { var weights = self.rarityWeights[self.boxType]; var modifiedWeights = {}; // Apply luck boost if active if (luckBoostActive) { // Double the weights for rare items modifiedWeights.common = weights.common * 0.5; modifiedWeights.uncommon = weights.uncommon * 0.7; modifiedWeights.rare = weights.rare * 2; modifiedWeights.epic = weights.epic * 2; modifiedWeights.legendary = weights.legendary * 2; } else { modifiedWeights = weights; } var random = Math.random() * 100; var cumulative = 0; for (var rarity in modifiedWeights) { cumulative += modifiedWeights[rarity]; if (random <= cumulative) { return rarity; } } return 'common'; }; self.open = function () { if (self.isOpening) return null; self.isOpening = true; var rarity = self.getRarity(); var value = self.itemValues[rarity]; LK.getSound('boxOpen').play(); tween(self, { scaleX: 1.2, scaleY: 1.2 }, { duration: 200, easing: tween.easeOut, onFinish: function onFinish() { tween(self, { scaleX: 0, scaleY: 0 }, { duration: 300, easing: tween.easeIn }); } }); return { rarity: rarity, value: value }; }; return self; }); var NumberPad = Container.expand(function () { var self = Container.call(this); var background = self.attachAsset('cheatPanel', { anchorX: 0.5, anchorY: 0.5 }); var enteredCode = ''; var targetCode = '4154'; var codeText = new Text2('', { size: 60, fill: 0xFFFFFF }); codeText.anchor.set(0.5, 0.5); codeText.y = -150; self.addChild(codeText); var closeButton = new Text2('X', { size: 80, fill: 0xFF0000 }); closeButton.anchor.set(0.5, 0.5); closeButton.x = 250; closeButton.y = -150; closeButton.interactive = true; closeButton.buttonMode = true; self.addChild(closeButton); // Create number buttons 0-9 var numberButtons = []; for (var i = 0; i <= 9; i++) { var button = self.attachAsset('numberButton', { anchorX: 0.5, anchorY: 0.5 }); var col = i % 3; var row = Math.floor(i / 3); if (i === 0) { col = 1; row = 3; } button.x = (col - 1) * 120; button.y = row * 80 - 40; var buttonText = new Text2(i.toString(), { size: 40, fill: 0xFFFFFF }); buttonText.anchor.set(0.5, 0.5); button.addChild(buttonText); button.interactive = true; button.buttonMode = true; button.number = i; button.up = function () { enteredCode += this.number.toString(); codeText.setText(enteredCode); if (enteredCode.length >= 4) { if (enteredCode === targetCode) { // Show cheat panel var cheatPanel = new CheatPanel(); cheatPanel.x = 1024; cheatPanel.y = 1366; game.addChild(cheatPanel); } enteredCode = ''; codeText.setText(''); self.destroy(); } }; numberButtons.push(button); } closeButton.up = function () { self.destroy(); }; return self; }); var OpenButton = Container.expand(function () { var self = Container.call(this); self.cost = 0; var buttonGraphics = self.attachAsset('openButton', { anchorX: 0.5, anchorY: 0.5 }); self.buttonText = new Text2('OPEN', { size: 60, fill: 0xFFFFFF }); self.buttonText.anchor.set(0.5, 0.5); self.addChild(self.buttonText); self.interactive = true; self.buttonMode = true; self.updateCost = function (cost) { self.cost = cost; if (cost === 0) { self.buttonText.setText('OPEN FREE'); } else { self.buttonText.setText('OPEN - ' + cost); } }; self.down = function () { tween(self, { scaleX: 0.95, scaleY: 0.95 }, { duration: 100 }); }; self.up = function () { tween(self, { scaleX: 1, scaleY: 1 }, { duration: 100 }); }; return self; }); var RewardItem = Container.expand(function () { var self = Container.call(this); self.setup = function (rarity, value) { var itemGraphics = self.attachAsset(rarity + 'Item', { anchorX: 0.5, anchorY: 0.5 }); self.scaleX = 0; self.scaleY = 0; tween(self, { scaleX: 1, scaleY: 1 }, { duration: 500, easing: tween.bounceOut }); if (rarity === 'epic' || rarity === 'legendary') { LK.getSound('rareFind').play(); LK.effects.flashScreen(0xFFD700, 500); } var rarityText = new Text2(rarity.toUpperCase(), { size: 50, fill: 0xFFFFFF }); rarityText.anchor.set(0.5, 0.5); rarityText.y = 80; self.addChild(rarityText); var valueText = new Text2('+' + value, { size: 60, fill: 0xFFD700 }); valueText.anchor.set(0.5, 0.5); valueText.y = -150; self.addChild(valueText); tween(valueText, { y: -250, alpha: 0 }, { duration: 1500, easing: tween.easeOut }); }; return self; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x1a1a1a }); /**** * Game Code ****/ var coins = storage.coins || 100; var collection = storage.collection || {}; var unlockedBoxes = storage.unlockedBoxes || ['basic']; var luckBoostActive = false; var luckBoostEndTime = 0; var luckBoostCost = 500; var luckBoostDuration = 60000; // 1 minute var currentBoxIndex = 0; var boxes = []; var boxConfigs = [{ type: 'basic', cost: 0 }, { type: 'silver', cost: 100 }, { type: 'gold', cost: 500 }, { type: 'diamond', cost: 2000 }, { type: 'legendary', cost: 10000 }]; var coinsText = new Text2('Coins: ' + coins, { size: 80, fill: 0xFFD700 }); coinsText.anchor.set(0.5, 0); LK.gui.top.addChild(coinsText); var collectionButton = new Text2('Collection', { size: 60, fill: 0xFFFFFF }); collectionButton.anchor.set(1, 0); collectionButton.x = -20; collectionButton.interactive = true; collectionButton.buttonMode = true; LK.gui.topRight.addChild(collectionButton); var collectionText = new Text2('Collection: ' + Object.keys(collection).length, { size: 60, fill: 0xFFFFFF }); collectionText.anchor.set(0, 0); collectionText.x = 20; collectionText.y = 100; LK.gui.topLeft.addChild(collectionText); var luckBoostButton = new Text2('Luck Boost: 500 Coins', { size: 50, fill: 0xFFD700 }); luckBoostButton.anchor.set(0.5, 0); luckBoostButton.y = 200; luckBoostButton.interactive = true; luckBoostButton.buttonMode = true; LK.gui.top.addChild(luckBoostButton); var luckBoostStatusText = new Text2('', { size: 40, fill: 0x00FF00 }); luckBoostStatusText.anchor.set(0.5, 0); luckBoostStatusText.y = 270; LK.gui.top.addChild(luckBoostStatusText); var currentBox = null; var openButton = new OpenButton(); openButton.x = 1024; openButton.y = 2200; game.addChild(openButton); var prevButton = new Text2('<', { size: 120, fill: 0xFFFFFF }); prevButton.anchor.set(0.5, 0.5); prevButton.x = 200; prevButton.y = 1366; prevButton.interactive = true; prevButton.buttonMode = true; game.addChild(prevButton); var nextButton = new Text2('>', { size: 120, fill: 0xFFFFFF }); nextButton.anchor.set(0.5, 0.5); nextButton.x = 1848; nextButton.y = 1366; nextButton.interactive = true; nextButton.buttonMode = true; game.addChild(nextButton); var boxNameText = new Text2('', { size: 80, fill: 0xFFFFFF }); boxNameText.anchor.set(0.5, 0.5); boxNameText.x = 1024; boxNameText.y = 800; game.addChild(boxNameText); function updateCoins(amount) { coins += amount; storage.coins = coins; coinsText.setText('Coins: ' + coins); LK.getSound('coinCollect').play(); } ; luckBoostButton.down = function () { tween(luckBoostButton, { scaleX: 0.9, scaleY: 0.9 }, { duration: 100 }); }; luckBoostButton.up = function () { tween(luckBoostButton, { scaleX: 1, scaleY: 1 }, { duration: 100 }); if (!luckBoostActive && coins >= luckBoostCost) { updateCoins(-luckBoostCost); luckBoostActive = true; luckBoostEndTime = Date.now() + luckBoostDuration; luckBoostButton.visible = false; } ; }; function updateCollection(rarity) { var key = currentBox.boxType + '_' + rarity; if (!collection[key]) { collection[key] = 0; } collection[key]++; storage.collection = collection; collectionText.setText('Collection: ' + Object.keys(collection).length); } function createNewBox() { if (currentBox) { currentBox.destroy(); } var config = boxConfigs[currentBoxIndex]; currentBox = new MysteryBox(); currentBox.setup(config.type, config.cost); currentBox.x = 1024; currentBox.y = 1366; game.addChild(currentBox); boxNameText.setText(config.type.toUpperCase() + ' BOX'); openButton.updateCost(config.cost); var isUnlocked = unlockedBoxes.indexOf(config.type) !== -1; if (!isUnlocked) { currentBox.alpha = 0.3; openButton.visible = false; boxNameText.setText('LOCKED - Need ' + currentBoxIndex * 1000 + ' coins'); } else { currentBox.alpha = 1; openButton.visible = true; } } function checkUnlocks() { for (var i = 0; i < boxConfigs.length; i++) { var boxType = boxConfigs[i].type; if (unlockedBoxes.indexOf(boxType) === -1) { if (coins >= i * 1000) { unlockedBoxes.push(boxType); storage.unlockedBoxes = unlockedBoxes; if (i === currentBoxIndex) { createNewBox(); } } } } } prevButton.down = function () { tween(prevButton, { scaleX: 0.9, scaleY: 0.9 }, { duration: 100 }); }; prevButton.up = function () { tween(prevButton, { scaleX: 1, scaleY: 1 }, { duration: 100 }); if (currentBoxIndex > 0) { currentBoxIndex--; createNewBox(); } }; nextButton.down = function () { tween(nextButton, { scaleX: 0.9, scaleY: 0.9 }, { duration: 100 }); }; nextButton.up = function () { tween(nextButton, { scaleX: 1, scaleY: 1 }, { duration: 100 }); if (currentBoxIndex < boxConfigs.length - 1) { currentBoxIndex++; createNewBox(); } }; openButton.down = function () { if (openButton.down.__super__) { openButton.down.__super__.call(openButton); } }; collectionButton.down = function () { tween(collectionButton, { scaleX: 0.9, scaleY: 0.9 }, { duration: 100 }); }; collectionButton.up = function () { tween(collectionButton, { scaleX: 1, scaleY: 1 }, { duration: 100 }); var collectionView = new CollectionView(); collectionView.setup(collection); collectionView.x = 1024; collectionView.y = 1366; game.addChild(collectionView); }; openButton.up = function () { if (openButton.up.__super__) { openButton.up.__super__.call(openButton); } if (currentBox && !currentBox.isOpening) { var cost = boxConfigs[currentBoxIndex].cost; if (coins >= cost) { if (cost > 0) { updateCoins(-cost); } var result = currentBox.open(); if (result) { var reward = new RewardItem(); reward.setup(result.rarity, result.value); reward.x = 1024; reward.y = 1366; game.addChild(reward); updateCoins(result.value); updateCollection(result.rarity); LK.setTimeout(function () { createNewBox(); reward.destroy(); }, 1000); } } } }; game.update = function () { checkUnlocks(); // Update luck boost status if (luckBoostActive) { var timeLeft = Math.max(0, luckBoostEndTime - Date.now()); if (timeLeft > 0) { var secondsLeft = Math.ceil(timeLeft / 1000); luckBoostStatusText.setText('2x Luck: ' + secondsLeft + 's'); } else { luckBoostActive = false; luckBoostStatusText.setText(''); luckBoostButton.visible = true; } } else { luckBoostStatusText.setText(''); } }; var cheatButton = new Text2('Cheat', { size: 40, fill: 0xFF0000 }); cheatButton.anchor.set(0.5, 1); cheatButton.x = 1024; cheatButton.y = 2700; cheatButton.interactive = true; cheatButton.buttonMode = true; game.addChild(cheatButton); cheatButton.up = function () { var numberPad = new NumberPad(); numberPad.x = 1024; numberPad.y = 1366; game.addChild(numberPad); }; createNewBox(); LK.playMusic('bgmusic'); ;
===================================================================
--- original.js
+++ change.js
@@ -24,17 +24,30 @@
var moneyButton = self.attachAsset('moneyCheatButton', {
anchorX: 0.5,
anchorY: 0.5
});
- moneyButton.y = 50;
+ moneyButton.y = 0;
var moneyButtonText = new Text2('9999 Coins', {
size: 40,
fill: 0xFFFFFF
});
moneyButtonText.anchor.set(0.5, 0.5);
moneyButton.addChild(moneyButtonText);
moneyButton.interactive = true;
moneyButton.buttonMode = true;
+ var resetButton = self.attachAsset('resetMoneyButton', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ });
+ resetButton.y = 100;
+ var resetButtonText = new Text2('Reset Money', {
+ size: 40,
+ fill: 0xFFFFFF
+ });
+ resetButtonText.anchor.set(0.5, 0.5);
+ resetButton.addChild(resetButtonText);
+ resetButton.interactive = true;
+ resetButton.buttonMode = true;
var closeButton = new Text2('X', {
size: 80,
fill: 0xFF0000
});
@@ -49,8 +62,14 @@
storage.coins = coins;
coinsText.setText('Coins: ' + coins);
self.destroy();
};
+ resetButton.up = function () {
+ coins = 0;
+ storage.coins = coins;
+ coinsText.setText('Coins: ' + coins);
+ self.destroy();
+ };
closeButton.up = function () {
self.destroy();
};
return self;
pixel tahta bir hazine kutusu. In-Game asset. 2d. High contrast. No shadows
pixel bir coin, üstünde dolar($) işareti var. In-Game asset. 2d. High contrast. No shadows
pixel bir hurda parçası. In-Game asset. 2d. High contrast. No shadows
2d pixel bir külçe altın. In-Game asset. 2d. High contrast. No shadows
2d pixel bir elmas. In-Game asset. 2d. High contrast. No shadows
2d pixel bir elmas ama ortadan ikiye ayrılmış. In-Game asset. 2d. High contrast. No shadows
2d pixel bir demir hazine kutusu. In-Game asset. 2d. High contrast. No shadows
2d pixel bir altından hazine kutusu. In-Game asset. 2d. High contrast. No shadows
2d pixel kırmızı gizemli bir hazine sandığı. In-Game asset. 2d. High contrast. No shadows
2d pixel bir kömür. In-Game asset. 2d. High contrast. No shadows