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

Generic-ify the HUD's ammo count #121

Open
Doom2fan opened this issue Aug 23, 2023 · 0 comments
Open

Generic-ify the HUD's ammo count #121

Doom2fan opened this issue Aug 23, 2023 · 0 comments

Comments

@Doom2fan
Copy link
Owner

Right now, the ammo count is somewhat hardcoded for each gun and relies on the ammo count being an inventory item.
It'd be a good idea to handle this by asking the weapon for its ammo count and max ammo, but then how do we handle providing the bullet graphics, if it's supposed to work for any HUD type?

  • It could work by ammo kinds (e.g., bullet, battery/meter)
  • We could have a system in the HUD where you define "ammo bar renderers" and those can handle different kinds of ammo.
@Doom2fan Doom2fan added this to the First beta release milestone Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant