<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://retinal.dehy.de/docs/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://retinal.dehy.de/docs/feed.php">
        <title>Welcome to (parts of) my world miscellaneous:games:hex</title>
        <description></description>
        <link>http://retinal.dehy.de/docs/</link>
        <image rdf:resource="http://retinal.dehy.de/docs/lib/tpl/minimal/images/favicon.ico" />
       <dc:date>2026-05-01T06:09:18+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:autodir&amp;rev=1590955042&amp;do=diff"/>
                <rdf:li rdf:resource="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:doors&amp;rev=1590489165&amp;do=diff"/>
                <rdf:li rdf:resource="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:money&amp;rev=1592778222&amp;do=diff"/>
                <rdf:li rdf:resource="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:onedoor&amp;rev=1590706168&amp;do=diff"/>
                <rdf:li rdf:resource="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:random&amp;rev=1591524262&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://retinal.dehy.de/docs/lib/tpl/minimal/images/favicon.ico">
        <title>Welcome to (parts of) my world</title>
        <link>http://retinal.dehy.de/docs/</link>
        <url>http://retinal.dehy.de/docs/lib/tpl/minimal/images/favicon.ico</url>
    </image>
    <item rdf:about="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:autodir&amp;rev=1590955042&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-31T21:57:22+02:00</dc:date>
        <title>miscellaneous:games:hex:autodir</title>
        <link>http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:autodir&amp;rev=1590955042&amp;do=diff</link>
        <description>It's a bit tedious having to define every room as leading back in the opposite direction to the room you just came from:

room hallway &quot;Hallway&quot;
  with description &quot;This is a pretty dull hallway.&quot;,
  n_to kitchen,
  s_to front_door;

room kitchen &quot;Kitchen&quot;
  with description &quot;You are in a well-appointed and modern kitchen.&quot;,
  s_to hallway,
  n_to back_door;</description>
    </item>
    <item rdf:about="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:doors&amp;rev=1590489165&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-26T12:32:45+02:00</dc:date>
        <title>miscellaneous:games:hex:doors</title>
        <link>http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:doors&amp;rev=1590489165&amp;do=diff</link>
        <description>I have no idea why Graham Nelson decided that doors should inherently be one-way portals.  Okay, sometimes you might want such a thing, but as a general rule?  I think not.

Here's how to create doors which &quot;just work&quot; both ways.  Credit to the toilet door on page 138 of the Inform Beginner's Guide for most of the clues.</description>
    </item>
    <item rdf:about="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:money&amp;rev=1592778222&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-22T00:23:42+02:00</dc:date>
        <title>miscellaneous:games:hex:money</title>
        <link>http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:money&amp;rev=1592778222&amp;do=diff</link>
        <description>This example replicates the former British currency system of 12 pennies to one shilling and 20 shillings to one pound.  It's easily adaptable to any other combination of up to three denominations, and could fairly readily be extended to more, if anyone thinks that's a reasonable monetary system in an adventure game.</description>
    </item>
    <item rdf:about="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:onedoor&amp;rev=1590706168&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-29T00:49:28+02:00</dc:date>
        <title>miscellaneous:games:hex:onedoor</title>
        <link>http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:onedoor&amp;rev=1590706168&amp;do=diff</link>
        <description>This creates a room with 6 doors, any of which can be opened, but once you've opened one, all the rest lock themselves.

! Rooms are illuminated by default in this game

class room has light;

! Define a door which knows about the others, locks them all when it is opened,
! and then makes sure itself remains unlocked

class hexdoor has static door openable lockable scenery
  with after [ x;
    open: objectloop (x ofclass hexdoor) give x locked;
      give self ~locked;
  ];

! Define the room w…</description>
    </item>
    <item rdf:about="http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:random&amp;rev=1591524262&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-07T12:04:22+02:00</dc:date>
        <title>miscellaneous:games:hex:random</title>
        <link>http://retinal.dehy.de/docs/doku.php?id=miscellaneous:games:hex:random&amp;rev=1591524262&amp;do=diff</link>
        <description>Here's a typical room definition (note that the class room is simply an object which has light, but also enables you to implement automatic two-way connections between places - although you may or may not want to use that in a maze...):

room dragonsden &quot;Dragon's den&quot;
  with description &quot;A dangerous dragon lives here.&quot;,
  short_name &quot;Gandor's End&quot;,
  n_to safety;</description>
    </item>
</rdf:RDF>
