Code edit (2 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
после того как противник пересек радиус 950 он останавливается на 1 секунду
Code edit (7 edits merged)
Please save this source code
User prompt
Ускорить поворот игрока на 1
Code edit (7 edits merged)
Please save this source code
User prompt
убрать прибавление одного очка при пересечении противником радиуса 950
Code edit (1 edits merged)
Please save this source code
User prompt
убрать отскок от стен у игрока и противника
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -30,16 +30,16 @@
};
// Prevent the car from moving in the opposite direction when it hits the wall
self.checkBounds = function () {
if (self.x < 0) {
- self.x += 200;
+ self.x = 0;
} else if (self.x > 2048) {
- self.x -= 200;
+ self.x = 2048;
}
if (self.y < 0) {
- self.y += 200;
+ self.y = 0;
} else if (self.y > 2732) {
- self.y -= 200;
+ self.y = 2732;
}
};
self.slidingDuration = 0;
self.setDirection = function (direction) {
@@ -82,16 +82,16 @@
};
// Prevent the enemy from moving in the opposite direction when it hits the wall
self.checkBounds = function () {
if (self.x < 0) {
- self.x += 200;
+ self.x = 0;
} else if (self.x > 2048) {
- self.x -= 200;
+ self.x = 2048;
}
if (self.y < 0) {
- self.y += 200;
+ self.y = 0;
} else if (self.y > 2732) {
- self.y -= 200;
+ self.y = 2732;
}
};
self.followPlayer = function (player) {
// Calculate the direction vector from the enemy to the player
Лава мультяшная вид сверху плоская. Single Game Texture. In-Game asset. 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.