Saturday, December 20, 2014

2D ragdoll physics using Box2D

This video contains five scenes showing 2D ragdoll physics and some other fun stuff that can be made using Box2D and my editor. The engine is written in C++ and is based on SDL2 and OpenGL.

Here are some features that can be seen in this video:

- skeleton flipping/scaling, joint limits
- custom gravity for maps, mouse joint
- skeleton animation to ragdoll transition
- player controlled vehicles (event-action)
- removing bodies and joints in realtime - railgun
- adding joints in realtime - stakegun

Big thanks to thecplusplusguy and iforce2d for their tutorials. Without those I probably wouldn't even start working on this:

You can download and try it out. There are some rendering glitches that can appear, I don't know what is causing those.

Saturday, December 6, 2014

Map editor preview

I had to make a map for another video, so I decided to record it and upload a time-lapse. I thought it will go faster, but it took me over an hour. This is the first time I used the new editor to actually make a map. It's great that I managed to work on a map for that long without any crashes.

This video shows only the basic features:
- multiple layers
- adding sprites
- changing textures
- scaling and resizing (vertex and line based)
- rotating
- delete, copy, cut, paste single or multiple sprites using a selection box
- paste preview
- moving sprites in front or behind each other
- moving sprites to a different layer
- parallax scrolling
- basic Box2D bodies

I have uploaded it as Public Build 1 and updated the manual. You can download it here: