User prompt
Игрок победит на 1000 очков
User prompt
Каждые 100 балов Спавн враг куб
User prompt
Куб быстрее при 200 балов
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'update')' in or related to this line: 'enemyCube.update();' Line Number: 126
User prompt
Добавить фон
User prompt
Когда 10 балов каждые 3 секунды минус 1 бал
User prompt
Если нажать на фон мюнус 1 бал
User prompt
Добавить фон
User prompt
При -1 бал игра закончится
User prompt
При нажатие на Враг куб минус 5 балов
User prompt
Куб враг Движется за куб
User prompt
При 150 балов спавн на середине кадра *39* враг куб
User prompt
При 100 балов куб движется быстрее
User prompt
Куб не выходит за кадр
User prompt
Куб движется по к краям карты
User prompt
Куб движется быстрее
User prompt
Куб при нажатия по нему. Спаун мини "21" и летят в разные стороны от куба и умирают через 3. Секунд
User prompt
При 50 балов куб ходит по карте
User prompt
При получение 1 бал куб становится больше
User prompt
При нажатие куба куб немного радует
User prompt
Куб расширяется при нажатии
User prompt
Please fix the bug: 'Uncaught TypeError: LK.effects.scaleTo is not a function' in or related to this line: 'LK.effects.scaleTo(self, 1.5, 1.5, 200, function () {' Line Number: 24
User prompt
При нажатее Куб расширяется и уменьшается
Initial prompt
Кликер кубика ахаххахахаххахах
===================================================================
--- original.js
+++ change.js
@@ -55,10 +55,8 @@
self.y += self.speedY;
};
LK.setTimeout(function () {
self.destroy();
- LK.setScore(LK.getScore() - 1);
- scoreTxt.setText(LK.getScore());
}, 3000);
});
/****
@@ -71,9 +69,8 @@
/****
* Game Code
****/
-// Add background image
var background = LK.getAsset('background', {
anchorX: 0.5,
anchorY: 0.5,
x: 2048 / 2,
@@ -88,23 +85,13 @@
LK.gui.top.addChild(scoreTxt);
var cube = game.addChild(new Cube());
game.enemyCubeSpawned = false;
cube.speedX = 10;
-game.scoreDecrementInterval = null;
cube.speedY = 10;
cube.speedIncreased = false;
cube.x = 2048 / 2;
cube.y = 2732 / 2;
game.update = function () {
- if (LK.getScore() >= 10 && !game.scoreDecrementInterval) {
- game.scoreDecrementInterval = LK.setInterval(function () {
- LK.setScore(LK.getScore() - 1);
- scoreTxt.setText(LK.getScore());
- }, 3000);
- } else if (LK.getScore() < 10 && game.scoreDecrementInterval) {
- LK.clearInterval(game.scoreDecrementInterval);
- game.scoreDecrementInterval = null;
- }
if (LK.getScore() >= 150 && !game.enemyCubeSpawned) {
var enemyCube = new EnemyCube();
enemyCube.x = 2048 / 2;
enemyCube.y = 2732 / 2;
@@ -113,11 +100,8 @@
} else if (LK.getScore() >= 100 && !cube.speedIncreased) {
cube.speedX *= 1.5;
cube.speedY *= 1.5;
cube.speedIncreased = true;
- } else if (LK.getScore() <= -1) {
- LK.showGameOver();
- return;
} else if (LK.getScore() >= 50) {
// Move cube towards the edges of the map
if (cube.x < cube.width / 2 || cube.x > 2048 - cube.width / 2) {
cube.speedX = -cube.speedX;