impulse_engine

Nim port of a simple 2D physics engine


Keywords
physics, engine, 2D, nim, physics-2d
License
Zlib
Install
nimble install impulse_engine

Documentation

Impulse Engine (Nim port)

Descripton:

Nim programming language port of Randy Gaul's Impulse engine (https://github.com/RandyGaul/ImpulseEngine).
Thanks to Randy for a great educational tool.

License:

zlib license (check the License.txt file for more details)

Used libraries (included in the source):

Installation:

nimble
Installation can be done using the Nimble package manager from the shell/command line (Nimble has to be installed):

$ nimble install impulse_engine


Compilation:

Run the following command in the shell/command line:

$ nim c impulse_engine.nim

On Windows (tested with mingw64-32) it should work out of the box, provided you have everything needed for openGL.
On GNU/Linux (tested on Lubuntu) you will probably need to install libmesa, Xcursor and other X development packages, and I also had to create symlinks for libGL.so, libXi.so and libXxf86v.so.
If anyone is willing to try it on another platform, any feedback would be greatly appreciated.

Screenshot:

Video:

https://www.youtube.com/watch?v=AzA_owsZU04