planck.js icon indicating copy to clipboard operation
planck.js copied to clipboard

How to disable debug render?

Open ivanstnsk opened this issue 6 years ago • 5 comments

Should I always use a testbed? It renders always debug layer. Any example how to draw a basic texture?

ivanstnsk avatar Aug 18 '18 23:08 ivanstnsk

I like this lib more than box2d.js but I has no documentation. Reffers to box2d documentation doesn't helpfull because it has a lot of differences. So I can't use it because I don't know how to use it without testbed. Have no idea why this repo has so many stars..

ivanstnsk avatar Aug 18 '18 23:08 ivanstnsk

This is how it can be used without testbed: https://github.com/shakiba/planck.js/blob/master/README.md#rendering-and-integration

Also you could see example folder to get familiar with API usage.

shakiba avatar Aug 19 '18 02:08 shakiba

Yes, a minimalistic documentation would be really great.

dibyendu avatar Jan 14 '19 21:01 dibyendu

There is not a single example showing how to use it without the testbed. You only show it in the readme but way to minimal.

This library seems really great, but the examples are lacking how todo certain things.

clankill3r avatar Jul 04 '19 22:07 clankill3r

You need to create a renderer, testbed is a renderer itself, so it might be helpful to check it out to see how it works: https://github.com/shakiba/planck.js/blob/master/testbed/index.js#L354 Feel free to let me know if you have any specific question about it.

shakiba avatar Jul 05 '19 04:07 shakiba

There are now a couple docs and examples:

Please feel free to reopen if needed.

shakiba avatar Aug 23 '23 08:08 shakiba