Hello!
I want to create a 2D platformer game. My intention is resemble the classic 1990´s games, like Prince of Persia and Another World.
The game should handle several floor "levels", falls, floors with inclinations, and maybe deformable floors too.
The character should be able to walk, jump, go up a floor level, go down.
I want to do all the programming in C++, I don´t want to use an engine like Box2D.
My plan is to use data structures storing the floor geometry as line segments. Something like this:
struct Segment
{
vec2 pointA, pointB;
};
// All line segments in a floor level
typedef std::vector<Segment> t_floorLevel;
// All geometry of the game map
typedef std::vector<t_floorLevel> t_terrainGeom;
So the question is...How can I handle the collisions?
Should SAT be overkill for this?
Should I represent the characters as circles, and check if they hit a line segment?
Thanks, Paul.