The cooldown visualization system displays circular progress rings that float above the player's submarine, showing the cooldown status for various items and abilities.
- Circular Progress Rings: Each item gets a circular ring that fills clockwise as the cooldown progresses
- Color Coding:
- 🔵 Blue (
COLOR_COOLDOWN_READY): Item is ready to use - 🟠 Orange (
COLOR_COOLDOWN_ACTIVE): Item is on cooldown
- 🔵 Blue (
- Text Labels: Item names are displayed in the center of each ring
- Responsive Visibility: Rings only appear when the corresponding upgrade is unlocked
- Harpoon - Always available
- AK47 - Visible when AK47 upgrade is purchased
- Buoy - Visible when Surface Buoy upgrade is purchased
- Drone - Visible when Drone Selling upgrade is purchased
scripts/cooldown_ring.gd- Individual ring componentscripts/cooldown_visualization.gd- Main visualization managerscenes/cooldown_visualization.tscn- Scene definition
- Rings appear 80 pixels above the submarine
- 50 pixel spacing between rings
- Automatically follows submarine movement
- Uses screen space positioning with 3D-to-2D projection
- Added to
scenes/player.tscnas a child node - HUD cooldown panels are hidden (
cooldown_info_panel.visible = false) - Reuses existing cooldown logic from
scripts/hud.gd
The system automatically activates when the game runs. No additional configuration required.
Adjust these values in scripts/cooldown_visualization.gd:
ring_spacing: Distance between ringsrings_height_offset: Vertical offset from submarinering_radius&ring_thickness: Visual appearance incooldown_ring.gd