I have used SDL to make this game. found several sample in C++. I have done it in C. here is the package
use compile.sh to compile. I am not good with make-files. I'd be very hapy, if some review the code and give critiques...
I tried the uploader. it wasn't working for me. so here is the mediafire link