{"id":235,"date":"2012-06-09T10:11:58","date_gmt":"2012-06-09T08:11:58","guid":{"rendered":"https:\/\/herr-rau.de\/blogs\/inform\/?page_id=235"},"modified":"2012-10-30T08:39:22","modified_gmt":"2012-10-30T07:39:22","slug":"wichtige-codezeilen-fuer-jedes-programm-und-minispiel","status":"publish","type":"page","link":"https:\/\/herr-rau.de\/blogs\/inform\/?page_id=235","title":{"rendered":"Wichtige Codezeilen f\u00fcr jedes Programm (und Minispiel)"},"content":{"rendered":"<ol>\n<li><strong>Die \u00dcberschrift mit Titel und Autor.<\/strong><\/li>\n<li><strong>Eine Zeile mit Release-Angaben.<\/strong> Dann entsteht beim Dr\u00fccken des &#8220;Release&#8221;-Knopfs im Materials-Ordner die Bytecode-Datei f\u00fcr den Interpreter, die man weitergeben kann. Optional au\u00dferdem noch: eine Kopie des Quelltexts, eine Einf\u00fchrung in Textadventures (pdf), eine Javascript-Datei, um das online spielen zu k\u00f6nnen, und eine Webseite, die das alle szusammenbaut.<\/li>\n<li><strong>Eine Regel <em>When play begins, say &#8220;&#8230;.&#8221;<\/em><\/strong> Dadurch wird am Anfang des Spiels ein Text mit Erkl\u00e4rungen zum Spiel ausgegeben, ein kurzes Intro.<\/li>\n<li><strong>Eine Regel, die das Spiel explizit beendet.<\/strong> Es ist frustrierend, wenn man nicht erf\u00e4hrt, ob die Geschichte jetzt vorbei ist oder nicht. Deshalb sollte mindestens eine Regel als imperativen Code enthalten: <em>&#8230;end the story saying &#8220;&#8230;..&#8221;.<\/em><\/li>\n<\/ol>\n<p>Damit sieht ein vopllst\u00e4ndiges, wenig spannendes Minispiel so aus:<\/p>\n<pre class=\"brush: inform7; title: ; notranslate\" title=\"\">&quot;Minispiel&quot; by Thomas Rau\r\n\r\nRelease along with an interpreter, the source text, the introductory booklet, and a website. \r\n\r\nWhen play begins, say &quot;You are in a castle, you must find the diamond, and you must put it in the box.\r\nThat's it. Have fun.&quot;\r\n\r\nThe Castle is a room. The description is &quot;Your castle. It may be small, but it's yours. An exit is in the east.&quot;\r\nThe Garden is east of the Castle. The description is &quot;A garden, very green. To the west is a building.&quot;\r\nThe box is an openable container in the Garden. It is closed.\r\nThe player carries a diamond. The description is &quot;A shiny jewel.&quot;\r\n\r\nAfter closing the box when the diamond is in the box:\r\n\tend the story saying &quot;Yay, this game is over.&quot;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Die \u00dcberschrift mit Titel und Autor. Eine Zeile mit Release-Angaben. Dann entsteht beim Dr\u00fccken des &#8220;Release&#8221;-Knopfs im Materials-Ordner die Bytecode-Datei f\u00fcr den Interpreter, die man weitergeben kann. Optional au\u00dferdem noch: eine Kopie des Quelltexts, eine Einf\u00fchrung in Textadventures (pdf), eine &hellip; <a href=\"https:\/\/herr-rau.de\/blogs\/inform\/?page_id=235\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":145,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-235","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/pages\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=235"}],"version-history":[{"count":0,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/pages\/235\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=\/wp\/v2\/pages\/145"}],"wp:attachment":[{"href":"https:\/\/herr-rau.de\/blogs\/inform\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}