From 3bb55368204cda38c2c30c84fbb3237e2fad4f19 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Fri, 6 Feb 2026 13:06:46 -0800 Subject: [PATCH] Add recoil velocity --- html/images/space.svg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/images/space.svg b/html/images/space.svg index 118f3f1..fe16764 100644 --- a/html/images/space.svg +++ b/html/images/space.svg @@ -247,6 +247,9 @@ const Shoot = (() => { const run = Math.cos(radians) * cannonLength; const origin = { x: x + run, y: y + rise }; + const { x: vx, y: vy } = Velocity[entity_id]; + Velocity[entity_id] = { x: vx - run, y: vy - rise }; + return { origin, target: {