
01-29-2010, 11:58 PM
|
|
Banned
|
Join Date: Jan 2009
Posts: 453
|
|
|
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. |
|
|
|