Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(player, {' Line Number: 57 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Условие inair должно определятся, если игрок сдвинулся от y=-1 до -300
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(player, {' Line Number: 53 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
Если double jump нажимают во время того, как первый прыжок не дошел до своего пика высоты, то jump отменяется и начинает срабатывать double jump
User prompt
Отменить прыжок jump и заменить его double jump, если jump не завершен
Code edit (3 edits merged)
Please save this source code
User prompt
добавить проверку, чтобы высота DOUBLE JUMP была всегда равна 400
User prompt
y: player.y - 400 высота DOUBLE JUMP должна всегда быть равно 400. ИСправить ситуацию, когда второй прыжок может быть меньше
Code edit (10 edits merged)
Please save this source code
User prompt
если double jump совершили во время набора высоты первого прыжка, то double jump начинается от текущей точки и на высоту y: player.y - 400
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
уменьшить скорость взлета у первого прыжка
Code edit (5 edits merged)
Please save this source code
User prompt
увеличить скорость приземления у первого прыжка
Code edit (1 edits merged)
Please save this source code
User prompt
уменьшить высоту прыжка
User prompt
увеличить скорость прыжка, но уменьшить скорость приземления
Code edit (1 edits merged)
Please save this source code
User prompt
уменьшить высоту прыжка на 50
User prompt
увеличить скорость взлета при первом прыжке
Code edit (2 edits merged)
Please save this source code
User prompt
еще увеличить скорость
User prompt
увеличить скорость взлета персонажа при прыжке
===================================================================
--- original.js
+++ change.js
@@ -45,17 +45,13 @@
}
});
return;
}
- // Check if player moved from y=-1 to y=-300 to set inAir status
- if (player.lastY <= -1 && player.y > -1 && player.y <= -300) {
- player.inAir = true;
- }
- player.lastY = player.y; // Update lastY for tracking changes on Y
+ player.inAir = true;
tween(player, {
y: player.y - 300
}, {
- duration: 300,
+ duration: 100,
onFinish: function onFinish() {
tween(player, {
y: 2732 / 2 - 250
}, {
создать мультяшного сидячего персонажа. 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