Skip to content

SDL

David Griffith requested to merge tkorvola:sdl into master

Created by: tkorvola

SDL Frotz now builds and runs again. It gets built by default along with curses and dumb. Of course you then need SDL, SDL_mixer, libpng, libjpeg, freetype2, libz and pkgconfig. The code compiles without warnings with current CFLAGS. I removed -Wextra because I think it produces too many false positives for regular use (I also went from gnu99 to c99 plus some POSIX).

There used to be some documentation by Aldo Cumani. It has been removed but fortunately Git remembers. Not knowing the reason for removal I have not restored it, but some documentation would definitely be appropriate. Anyway, sfrotz reads .sfrotzrc from the current (not home) directory. The syntax is that of a Windows ini file. You can specify fonts, among other things. As a new item you can specify a scalable graphics font. You should either should do so (anyone up to drawing us a nice one?) or not change any monospace fonts. The graphics font must be scaled to fit monospace text and we don't have a general bitmap scaler (unlike Winfrotz). Feel free to play with the proportional fonts though. They should not have ridiculously disparate size from monospace (16 pixels for the built-in font) but don't have to be an exact match.

Much of the code is rather ugly and there is plenty of room for improvement, e.g., window resizing. But it is a somewhat portable interpreter with graphics and sound.

Merge request reports