The simplest/most complete javascript box2d/liquidfun repository
Jeffkillian.com initially started as a Geocities website when I was in 6th grade. Over the years, it has slowly evolved into a place where I can practice and become familiar with web development as it progresses. I started out coding with Microsoft Frontpage, then moved to Dreamweaver. Initially, there was very little coding, and it was all WYSIWYG. However, as I learned more, I could make it more interactive.


I incorporate drawings and blog posts to keep those that are interested updated. Through the evolution of the website, I was forced to learn HTML, PHP, CSS, XML, jQuery, javascript, and the handling of MySQL Databases. I've put online some code samples.
The simplest/most complete javascript box2d/liquidfun repository

I've spent way too much time looking into various ports of Box2d and liquidfun for javascript in order to find the most complete, simplest one. I wanted to create a game, but getting started with liquidfun in javascript seemed surprisingly difficult. I've created a few liquidfun games, but each time I'm never satisfied with the library that I'm using...until now.

Below is a list of notable forks that I've found.
TL;DR: Use liquidfun-pure-javascript. It's a barebones javascript fork that already has a working example so you can get right to coding/playing around.

Liquidfun

This is a great start. It incorporates everything box2d has, and adds in really fun particle physics. The major drawback for this is that it only comes with one minified js file. It's a conversion from C++ using emscripten, so it doesn't have all features properly ported over either.

Box2d.js

This is a great port that includes all *.js files. The main downside here is that it uses google's closure compiler, so you'll need to be familiar with that in order to use this box2d fork. One advantage of this over liquidfun is that it supports b2ParticleSystem.GetBodyContacts(). This is necessary if you want to detect collisions between particles and bodies. For some reason, the standard emscripten liquidfun port above does not include this.

liquidfun-pure-javascript

This things got everything:
  • No google closure compiler, or any compiler necessary
  • Uncompressed *.js files for debugging
  • Example index file to hit the ground running
  • Full liquidfun port that includes all functions (including b2ParticleSystem.GetBodyContacts())

Write a comment...
Want more? Check the blog archives
Untitled Document