View Single Post
  #3  
Old 01-30-2010, 01:22 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by 12171217 View Post
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.
Well, could come up with an algorithm to create the lines on slopes, just make lines from corner to corner of blocking tiles. The rest could be handled normally.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote