Mikhail Rudiuk
Mikhail Rudiuk

Reputation: 31

Box2D port for Haxe (JavaScript)

I have downloaded and installed the library from the official Haxe site. But there is a problem: this port uses Flash libraries and doesn't want to compile to HTML+JS. Is there a solution?

Can you name another physical 2D engine for Haxe/JS: simple, correct, with samples?

Upvotes: 0

Views: 331

Answers (2)

Jeff Ward
Jeff Ward

Reputation: 19026

Looking at the code for the latest Box2D library, it seems like it should be cross-platform and framework agnostic. The sample has openfl-based code (though that should also compile for various targets.)

https://github.com/openfl/box2d

Nape was mentioned as an alternative. Here are some more recent links for the Nape engine:

Upvotes: 0

user2630051
user2630051

Reputation: 119

Nape is a really good Haxe physics library. http://napephys.com

Upvotes: 3

Related Questions