Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(player): implement player's health and healthbar #41

Merged
merged 6 commits into from
Mar 5, 2025

Conversation

Slocaly
Copy link
Contributor

@Slocaly Slocaly commented Feb 19, 2025

Description

Closes #31

Add life and an healthbar for the player

  • Add life that decrease when hit
  • Add a 'Hit' animation for when the player is ... well ... hit ! :D
  • Add a 'Death' animation for when the player die
  • Add a healthbar for the player

Screenshots (if appropriate):

Enregistrement.de.l.ecran.2025-02-19.a.08.27.57.mov

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@olivierperez olivierperez force-pushed the feat/add-player-life branch 2 times, most recently from cdddc6a to 552536f Compare March 3, 2025 13:29
@olivierperez olivierperez changed the title feat(player): add player healthbar feat(player): implement player's health and healthbar Mar 3, 2025
Copy link
Member

@olivierperez olivierperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it's almost good, you need to let clicks event "pass" through progress bar.
image

@olivierperez olivierperez requested a review from PopsIDX March 4, 2025 12:24
@Slocaly Slocaly force-pushed the feat/add-player-life branch from 983b76f to 7bb6cbe Compare March 4, 2025 17:27
@Slocaly Slocaly force-pushed the feat/add-player-life branch from 7bb6cbe to 392a123 Compare March 5, 2025 17:31
@Slocaly Slocaly merged commit 726464a into main Mar 5, 2025
@Slocaly Slocaly deleted the feat/add-player-life branch March 5, 2025 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(player): take damage on mob attack
3 participants