This weekend I created the base that I’m going to use for the next Ludum Dare.
I have a custom PhysicsNode class that provides a simple constructor for box2d shapes and synchronizes a cocos2d graphics node with the box2d.body.
Earlier versions required you to use the cocos2d commandline tool that merged all your files.
Now you can just write this in your Application.js file:
The custom Audiomanager first checks which codecs are supported,
when you give it an audio file to preload it will use the first url for a supported format:
Then you can play it with using the given alias
The repository also contains a small bash script that converts all ogg files in the audio directory into aac and wav files using ffmepg.
Please feel free to use this base for your own games.
It’s licensed under the zlib license, which means: do WTF you want, just don’t claim, that you wrote code that was written by others.
You can test it here.