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
@@ -43,16 +43,16 @@
};
self.slidingDuration = 0;
self.setDirection = function (direction) {
if (direction === 'left') {
- self.rotation -= 0.08;
- self.speedX += Math.sin(self.rotation) * 0.08;
- self.speedY += -Math.cos(self.rotation) * 0.08;
+ self.rotation -= 0.09;
+ self.speedX += Math.sin(self.rotation) * 0.09;
+ self.speedY += -Math.cos(self.rotation) * 0.09;
self.slidingDuration = 20; // Set sliding duration to 0.5 second (30 frames)
} else if (direction === 'right') {
- self.rotation += 0.07;
- self.speedX += Math.sin(self.rotation) * 0.07;
- self.speedY += -Math.cos(self.rotation) * 0.07;
+ self.rotation += 0.09;
+ self.speedX += Math.sin(self.rotation) * 0.09;
+ self.speedY += -Math.cos(self.rotation) * 0.09;
self.slidingDuration = 20; // Set sliding duration to 0.5 second (30 frames)
}
// Limit the speed to prevent the car from sliding too much
if (self.slidingDuration > 0) {
Лава мультяшная вид сверху плоская. 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.