Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve Debug type to allow customization of the debug view #17

Open
hecrj opened this issue Apr 26, 2019 · 0 comments
Open

Improve Debug type to allow customization of the debug view #17

hecrj opened this issue Apr 26, 2019 · 0 comments
Labels
feature New feature or request question Further information is requested

Comments

@hecrj
Copy link
Owner

hecrj commented Apr 26, 2019

I think we could extend the Debug type with some methods to allow games to easily customize the debug view.

Here is how it currently looks:

Debug view

Here are a couple of features that would be nice to have:

  • Add additional key/value text. Basically extend the current view. This can be useful for counters (think entity count, loaded chunks count, etc.), player position, additional performance information, etc. Some way to define the position of the text on screen would be nice.
  • Add rectangles, once we implement mesh support (Mesh support #4), possibly with customizable color. This will be useful to allow games to debug colliders, hitboxes, quadtrees, etc.

The API should be declarative (i.e. no side-effects until Debug::draw). Feel free to share any more ideas here!

@hecrj hecrj added feature New feature or request question Further information is requested labels Apr 26, 2019
@hecrj hecrj changed the title Improve Debug type to customize the debug view Improve Debug type to allow customization of the debug view Apr 28, 2019
@hecrj hecrj added this to the 0.3.0 milestone Apr 29, 2019
@hecrj hecrj removed this from the 0.3.0 milestone Jun 9, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant