I'm trying to write(in c++ using sdl) a mario like game as in a tile based world with by pixel movement for the character and I've run into some problems I cannot seem to find the source of:
1.The player won't collide with the walls.
2.when moving through open space the player sometimes stops moving and then becomes unmovable in either direction.
I'm not sure where the problem is and I would love your help finding these issues and any advice in general is appreciated. thanks!
Here is all the code:
http://pastebin.com/FGxW2x3T //sorry I can only post two links cause I don't have 10 rep.
Here is the collision detection function and player input/movement functions. http://pastebin.com/jWaZPDBm