How does 2D collision detection work? Like me an object walks up to a cliff or wall. What's stops them from the inverse side? Etc. What about a crooked wall, how do you make that easier, and how do they work when the player's screen scrolls as they walk?
I'm referring to a top view game.
