View Single Post
  #2  
Old 01-29-2010, 11:58 PM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
I had something where the world was represented as lines stored in arrays instead of tiles, it handeled slopes easily and perfectly (Just draw a collision mask over the level).

There's tons of examples of line intersection algorithms online, then just find the line you hit's normal and you can work off that.

Alternatively you could just as easily automatically convert the tiles into lines for collision.
Reply With Quote