OpenGl, tiling, and collision detection.
Hi,
I am trying to get some sort of little tile program up and running and so far i have a simple map that is 20x15. i''m using opengl ortho mode to draw my tiles, and i have 1 tile that is controlled by the keyboard.
My problem occurs when i try to get some sort of collision detection happenning. i just can''t seem to get it right! at the moment it won''t go through a gap between the tiles, and it also won''t go right to the edge of the tiles while pressing down or right. I have no idea how to fix this problem. Collision detection stuff like this as always been frustrating for me and i just don''t know where to go from here!
I have uploaded the vs.net project to my webpage. if anyone could have a look at it and help me with the collision detection, or help me work out a way that would be better suited in drawing my map for the collision detection, that would be a great help!
Thanks for your time....
Werdy666
My webpage : http://werdy666.20megsfree.com/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement