Tuesday, October 27, 2009

LevelSVG map editor

My second game will be a platform game, and one of the most time-consuming tasks is creating good level maps.
So I put a lot of effort in trying to ease this task by creating an SVG parser that supports:
  • Basic physics types 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.

No comments: