I'm joining the party late...downloaded it and am taking it for a spin. I like the design approach: hybrid parser, download finished game into a single HTML file, game data is separated from game engine, editor is HTML based, comes with examples, and a nice PDF manual. I don't see an easy way to include graphics?
No, there's no native support for graphics (yet) except to "say" html (and you have to avoid colons, which I wish I'd thought of when I made them syntactic, so use deprecated attributes or classes rather than proper HTML4+ style attributes) or muck about with javascript and use the js command, if that's your thing. There are various reasons why this is fiddly, including where the graphics go (am I going to need to let you upload them somehow?) but it's probably the single most common request I get, so I'll have a look at it next time I'm on a Gruescript dev spree. Lots of priority life stuff going on at the moment so I don't know when that will be! Glad you're enjoying it :-)
Thank you! I'll try "say" html way to display images. I'm currently learning the syntax so can't offer much at the moment, but my idea was to display a small image when a specific verb is used on an object. I'm hoping something like say <img src='image.jpg'> will work.
Yes, that should work, with the path to image.jpg relative to the index.html file (i.e. "image.jpg" if it's in the same folder, "images/monster.jpg" if it's in an 'images' subfolder, or whatever) - you'll probably want to download Gruescript and run it locally.
Really nice work, I hope you will find the time and energy to build on it. But imho, it should bring u a dollar instead of free for all (when they want), just to give you a point to still work on it.
Thanks! I choose to make it free, IF has always been an open culture and I wouldn't have been able to make any of my own games without free software by other people so it's nice to give something back
Hi Robin, I'm in the process of translating Coat of Darkness to French (and also make a French commented little game template. I'll let you know when it's done) and I was wondering if you plan to support images in a near future. It would be great to be able to display a location image, NPC's portrait and why not images for objects in locations. Amazing work so far. (BTW, I'm the Laurent Gontier you credit upper in this page)
I put one of your sample games up on Observable to test out the export. It works great! ( Except save game which depends on prompt() but that's easily fixable )
Ah, interesting! I actually rewrote the save/restore interface without prompt() for Gruesome (which, despite being a parser game, uses much of the same engine), so I'll try to make that change to GS soon.
Thanks! Google Chrome folks are out to get things like alert and prompt deprecated. I don't think they should but it's good to not depend on those methods for the engine.
This is amazing! Since it's open source does that mean you might accept pull requests? As a webdev passionate about IF it'd be great to contribute if possible?
It's just the internal names that have to be basic letters, numbers and underscores, if that's what you mean. You can set the display names to anything you like:
game Dïåcritics
id diacritics
room hagatna You're in downtown Hagåtña.
thing cajon Cajón
name cajón
loc hagatna
verbs play
verb play cajon
display plåy
prompt plåy {$this}
say It sounds better than Motörhead!
← Return to tool
Comments
Log in with itch.io to leave a comment.
Cross posted on Reddit...
I'm joining the party late...downloaded it and am taking it for a spin. I like the design approach: hybrid parser, download finished game into a single HTML file, game data is separated from game engine, editor is HTML based, comes with examples, and a nice PDF manual. I don't see an easy way to include graphics?
No, there's no native support for graphics (yet) except to "say" html (and you have to avoid colons, which I wish I'd thought of when I made them syntactic, so use deprecated attributes or classes rather than proper HTML4+ style attributes) or muck about with javascript and use the js command, if that's your thing. There are various reasons why this is fiddly, including where the graphics go (am I going to need to let you upload them somehow?) but it's probably the single most common request I get, so I'll have a look at it next time I'm on a Gruescript dev spree. Lots of priority life stuff going on at the moment so I don't know when that will be! Glad you're enjoying it :-)
Thank you! I'll try "say" html way to display images. I'm currently learning the syntax so can't offer much at the moment, but my idea was to display a small image when a specific verb is used on an object. I'm hoping something like say <img src='image.jpg'> will work.
Yes, that should work, with the path to image.jpg relative to the index.html file (i.e. "image.jpg" if it's in the same folder, "images/monster.jpg" if it's in an 'images' subfolder, or whatever) - you'll probably want to download Gruescript and run it locally.
That worked for me. The more that I use this, the more that I like. I highly recommend it. Thank you for creating this and making it available.
Thank you, it's really cool to hear from people who are enjoying using it!
I still love Grue, hopefully you can find the time again someday for updating. :)
Really nice work, I hope you will find the time and energy to build on it. But imho, it should bring u a dollar instead of free for all (when they want), just to give you a point to still work on it.
Thanks! I choose to make it free, IF has always been an open culture and I wouldn't have been able to make any of my own games without free software by other people so it's nice to give something back
Maybe i found some errors in the manual. Where to report this?
Scroll up a bit ;)
"Please report bugs to robindouglasjohnson@gmail.com"
absolutely understandable
Hi Robin, I'm in the process of translating Coat of Darkness to French (and also make a French commented little game template. I'll let you know when it's done) and I was wondering if you plan to support images in a near future. It would be great to be able to display a location image, NPC's portrait and why not images for objects in locations. Amazing work so far. (BTW, I'm the Laurent Gontier you credit upper in this page)
In the built-in Party Line game, the first clickable command result has a typo:
prompt knock on $this
should be
prompt knock on {$this}
otherwise it prints "$this" into the transcript. Only pointing out the nitpick because the example is supposed to teach the syntax.
I put one of your sample games up on Observable to test out the export. It works great! ( Except save game which depends on prompt() but that's easily fixable )
https://observablehq.com/@triptych/hello-gruescript
Ah, interesting! I actually rewrote the save/restore interface without prompt() for Gruesome (which, despite being a parser game, uses much of the same engine), so I'll try to make that change to GS soon.
Thanks! Google Chrome folks are out to get things like alert and prompt deprecated. I don't think they should but it's good to not depend on those methods for the engine.
The latest version gets rid of the prompts and uses nice slidey modals instead.
This is amazing! Since it's open source does that mean you might accept pull requests? As a webdev passionate about IF it'd be great to contribute if possible?
yes, pull requests are welcome! Somebody already spotted and fixed a mistake in the build log.
Awesome! I'll take a look and see how I might help in some way.
I’ve only played with it a little bit but I really love it so far.
Looks like a great engine! Pity it doesn't support non-Basic Latin names for rooms and verbs...
It's just the internal names that have to be basic letters, numbers and underscores, if that's what you mean. You can set the display names to anything you like:
Looks like what I was looking for, thank you!
Exciting! Thanks for providing, I'll have to check this out...
A brilliant idea. I hope this takes off, and will use it if I find the time.