···171171 jforce_slv := CONV_STD_LOGIC_VECTOR(jforce_int, 10);
172172173173 if key_w = '1' and jump_pressed = '0' and on_ground = '1' then
174174- vy := (others => '0');
175174 vy := vy - jforce_slv;
176175 jump_pressed <= '1';
177176 end if;
-1
visualizer.py
···137137138138 # First press on ground: full jump (elif prevents double-apply on same frame)
139139 if keys_held['w'] and not jump_pressed and on_ground:
140140- vy = to_unsigned(0)
141140 vy = (vy - scaled_jump()) & MASK
142141 jump_pressed = True
143142 elif keys_held['w'] and jump_pressed and on_ground: