1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: dont zero bounce velocity

-2
-1
physics_engine.vhd
··· 171 171 jforce_slv := CONV_STD_LOGIC_VECTOR(jforce_int, 10); 172 172 173 173 if key_w = '1' and jump_pressed = '0' and on_ground = '1' then 174 - vy := (others => '0'); 175 174 vy := vy - jforce_slv; 176 175 jump_pressed <= '1'; 177 176 end if;
-1
visualizer.py
··· 137 137 138 138 # First press on ground: full jump (elif prevents double-apply on same frame) 139 139 if keys_held['w'] and not jump_pressed and on_ground: 140 - vy = to_unsigned(0) 141 140 vy = (vy - scaled_jump()) & MASK 142 141 jump_pressed = True 143 142 elif keys_held['w'] and jump_pressed and on_ground: