SFML community forums

General => SFML projects => Topic started by: Dubmosphere on October 01, 2014, 09:57:06 pm

Title: Tilemap Collision for Platformer
Post by: Dubmosphere on October 01, 2014, 09:57:06 pm
Here is a little example of my tilebased collision detection for platformers...
I made it because i want to make a platformer.
Tell me how you find it.. if you have to tips to optimize it just say...

I know that if you are too fast and too near at an edge (for example if you are jumping and the top of the player is just touching a tile with his top right / left edge), you will not be stopped by the block but pushed away... this is because my collision response is really nooblike but I'm glad it works as good as that :)

http://download.lima-city.de/hazeler/AABBTiles.zip (http://download.lima-city.de/hazeler/AABBTiles.zip)

(http://download.lima-city.de/hazeler/screenshot.png)