Maybe this site can help?
http://www.tonypa.pri.ee/tbw/tut05.html

It is using action script (Flash) but I managed to folow the tutorials, especially "Hit the Wall" and "Jumping" to make a simple platform game with collision that worked quite well

cheers,
Paul