forge2d 0.6.2 forge2d: ^0.6.2 copied to clipboard
A 2D physics engine for Dart, also works with the Flame game engine in Flutter
Examples for Dart Forge2D #
If you haven't used webdev
before you might need to run:
pub global activate webdev
And then you can run:
pub global run webdev serve example:53322
And open http://127.0.0.1:53322 in your browser.
Since this is not running in release mode it will run a lot slower. If you want to run it in release mode you can run the following:
pub global run webdev build -r --output=example:build
and then open the index.html
file in forge2d/build/index.html
.
Old way #
Run:
./compile.sh
and then open index.html in a browser.