Commit graph

3 commits

Author SHA1 Message Date
Harald Hoyer 201b4589b3 fixup! feat: Implement player lives, destruction, and respawn
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2025-03-29 13:49:42 +01:00
Harald Hoyer 557b38af79 feat: Implement player lives, destruction, and respawn
Adds a player lives system with respawning and temporary invincibility.

- Introduces  resource (starts at 3).
- Modifies player-enemy collision to decrement lives and despawn player.
- Implements  for delayed respawn.
- Adds  component with a timer for post-respawn protection, including a blinking visual effect.
- Updates window title dynamically to show remaining lives.

Reverted collision detection from  (due to build errors)
back to using .

Fixed several borrow checker (E0499, E0596) and type mismatch (E0308)
errors encountered during implementation, primarily within the
 system.

Added  conditions for systems like shooting, collision checking,
and respawning.

Updates README.md to reflect the current state and completed TODO item.
2025-03-29 13:45:43 +01:00
Harald Hoyer 0a5382187e feat: initial commit
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2025-03-29 10:58:19 +01:00