Dev Blog: Project Moldering
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

blog comments powered by Disqus Bookmark and Share