openfl / box2d

Haxe port of Box2D, a popular rigid-body 2D physics engine
Other
95 stars 28 forks source link

Remove dependency on Flash #25

Open zommerfelds opened 4 years ago

zommerfelds commented 4 years ago

I'm trying to use box2d in my Heaps.io project, compiled for HashLink. The compilation fails because of the usage of flash.display.Sprite in B2DebugDraw.

Since I probably don't need debug draw I was wondering if we can wrap this code around a compile flag (using #if swf or maybe a custom debug_draw flag).

I'm pretty new to Haxe, but since this seems like an easy PR I could look into it if you like the idea.

zommerfelds commented 4 years ago

Woops I just noticed that this might have been fixed already. However it is not included in the latest release.

Can we cut a new release? 1.2.3 seems very old.

zommerfelds commented 2 years ago

Still at 1.2.3 :(