Posts

Showing posts from October, 2014

How to use Blender as a Box2D Platformer Level Editor [Tutorial]

Image
Hey guys so you want a level editor but don't want to build one yourself right? Who does? You basically need to create a entire tangential project, with full GUI editor and undo tree etc. Unless that's a goal of yours (selling etc?) you probably want an easier solution. Well folks, look no further than your good friend Blender 3D. The same tool you use for modeling crazy cartoon knights swinging swords and whatnot, can be your level editor for your 2D game. A Plan So how do we do this? What do we need? We need a output format that's easy to parse. We need to decide on attributes that we can assign meaning to (for box2D and our game) The texturing and vertex placement etc, comes for free since we're using a 3D modeling format :) The OBJ file format. Why OBJ? This is super easy to parse. You could use another format, if you're already using a parser (I recommend ASSIMP :) ), but for this tutorial, I'm going to use OBJ so you ca