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

Debug mode information/legend #19

Closed
slosumo opened this issue Nov 30, 2021 · 3 comments
Closed

Debug mode information/legend #19

slosumo opened this issue Nov 30, 2021 · 3 comments

Comments

@slosumo
Copy link

slosumo commented Nov 30, 2021

Would appreciate an additional legend to be added to debug overlay explaining the various colors/squares:
image

I assume one of the blues is showing world pos, 1 is showing render pos of the tile or something like that? I could decipher it but a quick glimpse at what these things mean would be great to haves!

@KilledByAPixel
Copy link
Owner

I will look into it, the debug mode is still kind of in flux, I have some better ideas on how to do it now.

@KilledByAPixel
Copy link
Owner

I improved the debug system!

I added toString to the EngineObject class which is used in the debug display. By default this looks similar to the screenshot above but can be easily extended to better suite the needs of any game.

The coloring is still the same for now. It's a basically a physics test from the camera point to the nearest object. If there is a collision the line is red and it shows the collision point. It also shows information about the mouse point and the nearest object.

@slosumo
Copy link
Author

slosumo commented Jan 24, 2022

Hey, thanks for the update- that's great to hear, will update the code sometime soon and check it out :)

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

No branches or pull requests

2 participants