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

Translate non-walkable areas into box2d #9

Open
ericoporto opened this issue Sep 1, 2019 · 0 comments
Open

Translate non-walkable areas into box2d #9

ericoporto opened this issue Sep 1, 2019 · 0 comments

Comments

@ericoporto
Copy link
Owner

ericoporto commented Sep 1, 2019

I imagine if there's some way to reasonably fast package the non walkable pixels into boxes (static bodies with rectangle shape) then we could have a function that loads the walkable areas into the world.

https://stackoverflow.com/questions/57745418/pack-pixels-in-1bit-bw-binary-image-in-boxes/

Other idea is Moore Neighbor tracing

Potrace may be useful.

Also XAGE has a similar converter to polygons for walkable areas on AGS Export plug-in

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

1 participant