There's a platform game example of JEDI-SDL over @ http://www.n0ki.de/jump/, I have not looked at the code, but maybe it would prove usefull.