create a visual bar ammo, able to do the following:
reduces when the player shoots (e.g., presses space)
Gradually over time, regenerate bullets
the update must be gradually displayed. Ensure the shooting option has a dedicated key in the program. also install ursina
# shot values
max_shot = 12
recent_shotss = max_shots
recret_rate = 2 # shots per second
recret_purse = 2.5 # seconds after shooting before recret starts
last_shot_time = 0
recret_timer = 0