How to include graphics

Dear all,

I’m programming a gaming using Inform 6.35 compiling to Glulx. Is there a comprehensive guide somewhere explaining how to add graphics to a game? I’d like to have two windows, one on top to display a picture and one at the bottom to display all text. It’d be great if the instructions did not expect me to have a degree in computer sciences.

Thanks and kind regards,

Grues

3 Likes

I’ve done this a couple of times in unpublished games. Fortunately for you, I created a little document to record the steps. See if this helps.

Gblorb notes.pdf (569.6 KB)

Note that the graphics routines assume a fixed-size image of 320x240, so adjust the numbers accordingly. I never worked out how to scale the images properly. I know it’s possible, but my experiments were less than successful.

My notes also explain how to play music or sound effects. You can omit that code if you’re not using sound.

It’s a pity that PunyInform doesn’t support Glulx or z6, otherwise we’d be able to use that.

3 Likes

Wow, that looks awesome! I’ll try that out as soon as possible and report! Thanks!! <3

2 Likes