Tagged With: Polygon
Cutting Concave Polygons
Remember my last post on how to turn concave polygons into convex ones so that you can actually use them in Box2D? Well, turns out my solution didn't quite work out that well. The thing is, if you mess up the order of vertices in the polygon (Box2D requires them to be in counter-clockwise order), … Continue reading
Physics!
UPDATE: Improved (and actually working) version can be found in this new blog post. So the next step since I fixed up the collision polygons last time was integrating physics into the game. Even though the game will not really be physics-based, it's a nice thing to have if only for the collision detection. After … Continue reading
Collision Detection on Tilemaps
Hey guys in my first english post I decided to share how I implemented collision. For those who don't know, I'm currently playing with the Slick2D framework for Java developing some kind of RPG/tower defense thing (Yeah, I know, not a really clear idea). Tile based collision really isn't much of a secret and there … Continue reading