Porting an old java applet game to SDL