So, I decided to start a 2D platform game for Windows using only the ANSI character set but the problem is, I am not sure how to do collision detection. Does anybody know how to do this? I have to be able to check the player's position and velocity in relation to a four-sided polygon (a square). Also, there is gravity also affecting the player (and later to implement: enemies).
Would anybody how to accomplish this, or even point me to right direction as to where I can get some help? I have searched the Internet (what feels like forever) and found nothing basic and relevant.
Additional:
Hah! I think I found a great site, and in C++! (FINALLY!

)
[link]
--
live in your imagination
--
"A match made in a galaxy far far away..."
--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein
--
... one day at a party somebody handed me a cat, just a small cat, and I tried it. It wasn't bad, sort of pleasant in fact. So I had another, and then another, and then another....
--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein
--
o.o
--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein
--
o.o
--
"I don't try to imagine a personal god; it suffices to stand in awe at the structure of the world, insofar as it allows our inadequate senses to appreciate it." -Albert Einstein
Previous Page12345...Next Page