Jul
05
2009
Custom Polygons as Boundaries
I created a mechanism for drawing custom polygon shapes in the level editor. These shapes can be used to draw boundaries. Unfortunately because they’re created as Box2D polygons they must meet these requirements:
1. Must be convex. Concave shapes are not allowed. However concave shapes can be simulated by using multiple polygons.
2. Must be drawn clockwise. I don’t really get why this must be done, but hey, its not my rules.
3. Must not exceed 8 vertices.
I’m looking forward to creating some interesting maps!
-James

![[loading...]](http://www.projectmoldering.com/images/indicator.gif)