Archive for the 'box2d' Category

LevelSVG map editor

My second game will be a platform game.
One of the most time-consuming tasks in developing platform games is creating good level maps. Therefore, I have put a lot of effort in trying to ease this task by creating an SVG parser that supports:
  • Basic physics objects like: rect, circle, lines, bezier paths and nested transformations
  • The possibility to edit physics properties like: density, friction, restitution and isSensor
  • The possibility to link SVG elements with pre-defined physics objects and cocos2d sprites
  • Collision detection logic between these elements
  • Jump logic (the hero only jumps when touching the ground)
  • Movement logic (tilt, d-pad)
Example video:
The source code of this level “editor” will be available for purchase in a few days.

cocos2d + box2d: part II

Today I’ve been working on the editor and it is more or less functional. It is still a prototype, but it should work for very basic games.

Here is a video that shows some of it’s features.