diff --git a/physics_engine.vhd b/physics_engine.vhd index 5cc62ef..a43c742 100644 --- a/physics_engine.vhd +++ b/physics_engine.vhd @@ -171,7 +171,6 @@ begin jforce_slv := CONV_STD_LOGIC_VECTOR(jforce_int, 10); if key_w = '1' and jump_pressed = '0' and on_ground = '1' then - vy := (others => '0'); vy := vy - jforce_slv; jump_pressed <= '1'; end if; diff --git a/visualizer.py b/visualizer.py index 5ab6bdd..7e13e77 100644 --- a/visualizer.py +++ b/visualizer.py @@ -137,7 +137,6 @@ def main(): # First press on ground: full jump (elif prevents double-apply on same frame) if keys_held['w'] and not jump_pressed and on_ground: - vy = to_unsigned(0) vy = (vy - scaled_jump()) & MASK jump_pressed = True elif keys_held['w'] and jump_pressed and on_ground: