Sorry for the bad written code...It was late.

Anyway, this simple game was written in Dev-C++ 4.9.8.0
The SDL version I used is v1.2 

/saida