angstsmurf / spatterlight

Updated fork of Spatterlight
GNU General Public License v3.0
105 stars 5 forks source link

Hugo updates #33

Open curiousdannii opened 3 years ago

curiousdannii commented 3 years ago

I just noticed you've done a lot of work on the Hugo interpreter. Do you think the updates would work in other Glk interpreters?

angstsmurf commented 3 years ago

Not really. The Hugo code in hecugel.c bypasses the Glk screen model with parent windows that split into child windows, and instead uses custom windows with arbitrary size and position. And it still needs lots of game-specific hacks to make games like Cryptozookeeper and Future Boy work with screen resizing and variable window margins.

The text colour code uses your zcolors API, however, so that might be possible to transplant to Gargoyle. I'm not super motivated to do that myself due to the messy state of the code, but perhaps somebody else might be able to find something useful in there.

curiousdannii commented 3 years ago

Gotcha. Eventually I want to work on getting more graphics support into Lectrote's Hugo interpreter, so I'll look then at what you've done here.