Code edit (2 edits merged)
Please save this source code
User prompt
in Player mini movements, also move forearms ans hands
User prompt
Add another button in the bottom center : gardButton
Code edit (4 edits merged)
Please save this source code
User prompt
when player hands touch enemy, move the enemy back in his current direction, not just on x
Code edit (1 edits merged)
Please save this source code
User prompt
when enmy is hit it should go back
User prompt
When a hand intersects with the opponent head implement player been hit : head should go back, flash the whole screen red
User prompt
implement player been hit : head should go back, flash the whole screen red
User prompt
implement player been hit
Code edit (13 edits merged)
Please save this source code
User prompt
Simulate punch button press and release
User prompt
Simulate punch button press and release
User prompt
no, you should do both : reduce when pressed and restore when up
User prompt
but restore the button w & h when released :)
User prompt
when punch button is pressed, reduce its w & h to simulate press
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
when punching, also change the width of the head to simulate the tilt
Code edit (2 edits merged)
Please save this source code
User prompt
when punching, move of the head like boxers do
User prompt
prevent players to be too close
User prompt
add a bit of randomness to the mini movements
Code edit (1 edits merged)
Please save this source code
User prompt
when idmle, animate the players with mini movements of head and arms
===================================================================
--- original.js
+++ change.js
@@ -231,12 +231,12 @@
self.head.y = -40 + Math.sin(LK.ticks / 10 + Math.random() * 0.2) * 2;
// Mini arm and forearm movement with added randomness
self.leftArm.rotation += Math.sin(LK.ticks / 15 + Math.random() * 0.2) * 0.005;
self.leftForearm.rotation += Math.sin(LK.ticks / 10 + Math.random() * 0.2) * 0.005; // Add forearm movement
- self.leftHand.x += Math.sin(LK.ticks / 5 + Math.random() * 0.2); // Add hand movement
+ self.leftHand.x += Math.sin(LK.ticks / 5 + Math.random() * 0.02); // Add hand movement
self.rightArm.rotation -= Math.sin(LK.ticks / 15 + Math.random() * 0.2) * 0.005;
self.rightForearm.rotation -= Math.sin(LK.ticks / 10 + Math.random() * 0.2) * 0.005; // Add forearm movement
- self.rightHand.x -= Math.sin(LK.ticks / 5 + Math.random() * 0.2); // Add hand movement
+ self.rightHand.x -= Math.sin(LK.ticks / 5 + Math.random() * 0.02); // Add hand movement
// Update body position and rotation
self.body.x = self.x;
self.body.y = self.y;
// Calculate angle to face the opponent
clear
basic light gray convex round button with a red boxing glove icon. UI
Un gant de boxe bleu vu de dessus. video game
basic light round convex gray button with a raised blue shield icon.. UI
un éclair. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
remove
a basic white heart.. game icon
A boxer has lost the match..
man boxer with red gloves is KO on the ring..