a few weeks ago i made a simple platformer level, the map is saved to a text file and loaded into a 2D array where i handled collision by comparing the position of the player to the 2D array to see if the slot he's in is occupied or not then adjust its position.
i wanted to add more to the level so i started using tiled map editor to build the map and adding some slopes, stairs, etc..,
in tiled collision is added by drawing shapes(rectangles, polygons, and lines), the problem is colliding with polygons and lines (slopes)
i tried searching for it and all i found was things about separation of axis or speculative contacts and other things which i find very advanced and confusing for my level.
so i wanted to ask if there was an easier way to this ?
also should i handle all collisions in one separate class or i make every entity handle it's own collision ?