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: {