Code edit (4 edits merged)
Please save this source code
User prompt
Enhance the quality of the 'dom' image by increasing its resolution.
User prompt
Улучшить изображение dom
Code edit (1 edits merged)
Please save this source code
User prompt
Повернуть dom на 20 градусов по часовой стрелке
User prompt
Добавить изображение dom в центр экрана
User prompt
Цвет 12243b
User prompt
Цвет 020c34
User prompt
Сделать фон темно голубой
User prompt
Фон чуть темнее
User prompt
Цвет #1b1615
User prompt
Цвет фона светло темный
User prompt
Цвет фона черныц
User prompt
добавь плагин
User prompt
Please fix the bug: 'Timeout.tick error: tween is not defined' in or related to this line: 'tween(ball, {' Line Number: 304 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
Добавить изображение sunduk и скопировать алгоритм полностью у skelet
User prompt
Исправить лаги в игре
User prompt
Добавить изображение ufo и скопировать алгоритм полностью у skelet
User prompt
Прозрачность алмаз 70
User prompt
Прозрачность алмаз 50
User prompt
Прозрачность скелет 50
User prompt
Прозрачность скелет 60
User prompt
Сделать прозрачность skelet 80
User prompt
Добавить изображение скелет и скопировать алгоритм полностью у almaz
===================================================================
--- original.js
+++ change.js
@@ -136,8 +136,29 @@
/****
* Game Code
****/
+// Set a random interval between 4 to 8 seconds to create SUNDUK
+function randomSundukCreation() {
+ var randomTime = Math.floor(Math.random() * (10000 - 4000 + 1)) + 4000;
+ LK.setTimeout(function () {
+ createSunduk();
+ randomSundukCreation(); // Call again for continuous random creation
+ }, randomTime);
+}
+// Start the random SUNDUK creation
+randomSundukCreation();
+// Function to create SUNDUK image
+function createSunduk() {
+ var sunduk = game.addChild(LK.getAsset('Sunduk', {
+ anchorX: 0.5,
+ anchorY: 0.5
+ }));
+ sunduk.x = 2090; // Center image horizontally
+ sunduk.y = Math.floor(Math.random() * (2732 - 2332 + 1)) + 2332; // Random height between 2332 and 2732
+ sunduk.rotation = Math.PI / 9; // Rotate image by 20 degrees clockwise
+ sunduk.alpha = 0.5; // Set transparency to 50%
+}
// Function to create UFO image
function createUfo() {
var ufo = game.addChild(LK.getAsset('Ufo', {
anchorX: 0.5,
@@ -357,15 +378,12 @@
// If the image is completely off the screen
child.destroy(); // Remove the image
}
}
- });
- if (game.ticks % 5 === 0) {
- // Reduce the frequency of setChildIndex operations
game.setChildIndex(player, game.children.length - 1); // Move player to the top
game.setChildIndex(buttonBot, game.children.length - 1); // Ensure buttonBot is on top
game.setChildIndex(buttonTop, game.children.length - 1); // Ensure buttonTop is on top
- }
+ });
// Add shaking effect to the player
if (gameStarted) {
if (LK.ticks < 130) {
// Strong shake for the first second (assuming 60 FPS)
создать мультяшного сидячего персонажа. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
snowball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
белая стрелочка вниз. Ровная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Алмаз, мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Скелет дракона. Мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Ufo (летающая тарелка). Мультяшная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Пингвин в снегу. Мультяшный. Головой в снегу. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Мультяшный рыбак зимой сидит рыбачит. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Человек летит на параплане. Мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Куст в снегу мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Дирижабль, мультяшный. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Рука белая. Иконка. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Монетка золотая мультяшная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
снежинка. мультяшная. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
text: New Record! Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows