===================================================================
--- original.js
+++ change.js
@@ -985,13 +985,13 @@
}
var impacted = defender.handleHitImpact(attacker);
// Emit projections from behind the defender's head on hit
if (impacted && !defender.isGuarding) {
- var projectionCount = 5;
+ var projectionCount = 10;
for (var i = 0; i < projectionCount; i++) {
var projection = new Projections();
- projection.x = defender.head.x + (Math.random() - 0.5) * 100; // Randomize start position around the head
- projection.y = defender.head.y + (Math.random() - 0.5) * 100;
+ projection.x = defender.x + (Math.random() - 0.5) * 100; // Randomize start position around the head
+ projection.y = defender.y + (Math.random() - 0.5) * 100;
projection.direction = Math.atan2(defender.y - attacker.y, defender.x - attacker.x) + (Math.random() - 0.5);
game.addChild(projection);
}
}
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..