tank-dev / tank

A 2D C++ game engine taking inspiration from FlashPunk
Boost Software License 1.0
12 stars 3 forks source link

Debug overlay #70

Open Anstow opened 10 years ago

Anstow commented 10 years ago

I think some kind of overlay, that lets you view collision boxes and the like, would be useful. It should be easy to add more meta data too. Possibly should only be enable-able in debug mode?

DavidTruby commented 10 years ago

This seems sensible. How do we want to do the UI for this? I was thinking that at some point we might want a 2D UI library tailored for game HUDs etc, this may want to use that if I ever get round to starting it :-P

Anstow commented 10 years ago

Probably a function in each entity that lets you draw lines and stuff on an overlay. But it doesn't do anything if the mode isn't enabled.

DavidTruby commented 10 years ago

Yeah that's fine for a simplistic implementation. I was thinking something more like what flashpunk has i.e. memory usage, how many entities in the world at the current time etc. For implementing that we might need a UI library.

Anstow commented 10 years ago

I think that starting simple is the way forward. We can always add stuff to the overlay later.

DavidTruby commented 10 years ago

Sure, I was just posting here to keep my thoughts in the open :-P. I should probably post a separate issue about a UI library. Edit: Issue #71