GithubHelp home page GithubHelp logo

Target Health Bar about fpsci HOT 5 CLOSED

nvlabs avatar nvlabs commented on July 28, 2024
Target Health Bar

from fpsci.

Comments (5)

jspjutNV avatar jspjutNV commented on July 28, 2024

I like keeping around the health bar and creating an issue to make it track the target as you'd expect.

Adding a config option to allow this kind of health indicator to be enabled or disabled sounds appropriate as well. Default value should be False.

While we're at it, we might want to add a config option to enable target health color shift which can be set to True by default.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

I (broadly) agree with this, and could see us offering up 3 options here:

  1. The current colored target (maybe w/ customizable colors eventually)
  2. A health bar that tracks the target
  3. A health bar that is positioned statically somewhere in screen space

I think having 2 flags could manage this (since some may want both the target color shift and health bar). We could also use the lack of a provided position for the health bar as an indicator to tie it to the target. As for color shift, I was debating whether we let the user just specify 2 colors (max/min health) and then let the app interpolate between the two. If the two colors are equal then the target is just constant color.

from fpsci.

jspjutNV avatar jspjutNV commented on July 28, 2024

I don't think a static target health bar makes sense very often. I can think of a few "boss fight" type scenarios in games where they add a health bar in the center top of the screen. Here's an example screenshot of that.
image

Key to these kinds of scenarios is that the boss often has many targets that are valid and all contribute toward damage to the same health pool. While implementing this style of health bar is easier, I don't know that we need it to be a core feature we maintain like the target color or tracked health bar.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

I think we could still support the fixed health bar (boss-style) option, especially since it is trivial once you have the option for positioning it above the target.

Since @jspjutNV posted the image above, do we also want to start another issue (possibly referencing this one) for floating combat text? I know we discussed this at some point, but weren't sure how we wanted to implement it.

from fpsci.

bboudaoud-nv avatar bboudaoud-nv commented on July 28, 2024

Closing this for now as @pknowlesnv's recent commit takes care of the basics. We've also moved floating combat text to it's own issue (Issue #24). The only possible remaining item is adding back in a "boss-style" health bar, but this hasn't been requested up to now. Can create a new issue for this in the future.

from fpsci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.