Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support images in SCARE #818

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Support images in SCARE #818

merged 1 commit into from
Feb 24, 2024

Conversation

cspiegel
Copy link
Contributor

This works by writing a temporary PIC0 file, displaying it, then removing it. A future Gargoyle extension might allow memory-based image display, rendering this unnecessary, but it works well enough for the time being. The PIC0 file must be in the game directory, though, so if that's not writable, this won't work.

Many games display an image on startup then clear the screen, which obliterates the image. The official Adrift runner, by default, has a separate window-manager window showing the image, so it doesn't matter if the screen is cleared. However, you can configure it to display inline images, in which case, just like in SCARE, they disappear, although unlike Gargoyle, you can scroll back past cleared screens in the Adrift runner.

The Adrift runner also supports a Glk-like window on the top or right holding the graphic (plus a map), so theoretically SCARE could be modified to support both inline and windowed images as well, but for the time being, just do inline. This loses title screen images, but Gargoyle never had that before, so it's not a change, and games with actual inline images (such as "The PK Girl") now work.

This works by writing a temporary PIC0 file, displaying it, then
removing it. A future Gargoyle extension might allow memory-based image
display, rendering this unnecessary, but it works well enough for the
time being. The PIC0 file must be in the game directory, though, so if
that's not writable, this won't work.

Many games display an image on startup then clear the screen, which
obliterates the image. The official Adrift runner, by default, has a
separate window-manager window showing the image, so it doesn't matter
if the screen is cleared. However, you can configure it to display
inline images, in which case, just like in SCARE, they disappear,
although unlike Gargoyle, you can scroll back past cleared screens in
the Adrift runner.

The Adrift runner also supports a Glk-like window on the top or right
holding the graphic (plus a map), so theoretically SCARE could be
modified to support both inline and windowed images as well, but for the
time being, just do inline. This loses title screen images, but Gargoyle
never had that before, so it's not a change, and games with actual
inline images (such as "The PK Girl") now work.
@cspiegel cspiegel merged commit 825fbc8 into garglk:master Feb 24, 2024
21 checks passed
@cspiegel cspiegel deleted the scare-images branch February 24, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant