Skip to content

Commit cfa0044

Browse files
committed
better UI
1 parent 0896d21 commit cfa0044

3 files changed

Lines changed: 350 additions & 239 deletions

File tree

pufferlib/ocean/boss_fight/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The boss cycles through:
2121

2222
`IDLE (BOSS_IDLE_TICKS) -> WINDUP (BOSS_WINDUP_TICKS) -> ACTIVE (BOSS_ACTIVE_TICKS) -> RECOVERY (BOSS_RECOVERY_TICKS) -> ...`
2323

24-
During **ACTIVE**, the boss deals damage if the player overlaps the AOE circle.
24+
During **ACTIVE**, the boss deals `BOSS_ATTACK_DMG` damage **every tick** the player overlaps the AOE circle (unless i-framed). Staying in the AOE for the full 5 ticks = 75 damage.
2525

2626
### Player mechanics
2727

@@ -86,7 +86,14 @@ All reward constants are in `boss_fight.h`:
8686

8787
## Rendering / manual play
8888

89-
- Rendering uses **Raylib**. `BossFight.render()` opens a window and draws the player/boss circles + hit radii.
89+
- Rendering uses **Raylib** with enhanced visuals:
90+
- Grid overlay + crosshair axes
91+
- Time remaining bar (steps + seconds)
92+
- Boss AoE telegraph (charging ring during WINDUP, filled during ACTIVE)
93+
- Boss state label (IDLE/WINDUP/ACTIVE/RECOVER)
94+
- Dodge trail particles + i-frame blink effect
95+
- Attack pulse ring effect
96+
- HP bars + dodge cooldown bar in HUD
9097
- A tiny standalone debug harness lives in `boss_fight.c`:
9198
- Hold `Left Shift` for manual controls: `WASD` move, `Space` dodge, `J` attack
9299
- Without `Left Shift` it takes random actions

0 commit comments

Comments
 (0)