Update: Gravitational attractor now added. There's an example on the above link (refresh to v1.0.0.3).
Hull shape editor now complete. This works how the c2 sprite polygon editor should have worked... Right click on a line to create a vertex; left click on a vertex to delete it. Download the json or copy it from a textbox.
Here's an example:
Colludium - keep up the awesome work!
Thanks justifun!
Platform behavior now complete. Here's a demo: link. Open it in a mobile and it'll give you screen controls, otherwise use the arrow keys to move. It's hardly a massive puzzle platformer, but you get the idea .
Develop games in your browser. Powerful, performant & highly capable.
Added a helper function to check that a loaded polygon shape is not complex. Not long now....!
Here's a demo of the editor capx: link
Upload images and edit the collision shape, then download / copy the AsJSON string for the shape array.
Colludium - That custom collision box drawing is awesome. Can that be done at runtime? to build / change collision box shapes on the fly?
Thanks! Yes it can. I have an example where you can draw shapes - follow this link then click on the button at bottom left ("Draw Shapes") and you can see it in action. The hull is contained in an array of vertices that can be loaded directly into the plugin to form the outline (it loads as array.AsJSON). The plugin will include a capx of the editor and it will also have instructions that explain how to use it.
Instructions!
The plugin will be ready in the next couple of days!
Is there way to retrieve joint data?
Unfortunately, Prominent, there are no methods in the library I am using to enable access to the emscripten joint reaction force values.
This looks fantastic, can't wait to give it a try.
Thank you very much for the great work!
what about joint attachment x,y positions, and joint object uids?
— I could add those easily, I think. What would you like to be able to do? Use a joint tag to get the UIDs of those attached by the joint, get UIDs of other objects attached to an object, get joint X and y positions by tag?
Might be worth looking at the chipmunk plugin. It has a ton of features for working with joints.
Prominent - good advice. I've now added the following expressions: