| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-12-22 05:28:39 +0100 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-12-22 05:28:39 +0100 |
| commit | 85b221d2ea434a203d87965a5acd2997fa68bcbd (patch) | |
| tree | 65b5ba0b18ac42ca08259e69dbb030ecd6c5859e /content | |
| parent | d0d6117176d68b2345d36e81ccdaa447e9caa724 (diff) | |
Got most of the things updated.
Still need to fix the links and some categories are in the wrong order.
Diffstat (limited to 'content')
| -rw-r--r-- | content/_index.md | 3 | ||||
| -rw-r--r-- | content/fate_v1/_index.md | 1 | ||||
| -rw-r--r-- | content/images/discord.svg | 70 | ||||
| -rw-r--r-- | content/images/github.svg | 71 | ||||
| -rw-r--r-- | content/images/reddit.svg | 63 | ||||
| -rw-r--r-- | content/images/tonkadur_logo_black.svg | 97 | ||||
| -rw-r--r-- | content/images/tonkadur_logo_black_as_path.svg | 117 | ||||
| -rw-r--r-- | content/images/tonkadur_logo_white.svg | 98 | ||||
| -rw-r--r-- | content/images/tonkadur_logo_white_as_path.svg | 118 | ||||
| -rw-r--r-- | content/learn/03.variables/default.md | 100 | ||||
| -rw-r--r-- | content/learn/04.sequences/default.md | 143 | ||||
| -rw-r--r-- | content/learn/05.files/default.md | 154 | ||||
| -rw-r--r-- | content/learn/06.pointers/default.md | 238 | ||||
| -rw-r--r-- | content/learn/07.structures/default.md | 296 | ||||
| -rw-r--r-- | content/learn/08.collections/default.md | 696 | ||||
| -rw-r--r-- | content/learn/09.lambdas/default.md | 620 | ||||
| -rw-r--r-- | content/learn/10.conditions/default.md | 686 | ||||
| -rw-r--r-- | content/learn/_index.md | 1 | ||||
| -rw-r--r-- | content/made_with_tonkadur/_index.md | 1 | ||||
| -rw-r--r-- | content/setup/_index.md | 5 | ||||
| -rw-r--r-- | content/wyrd_v1/_index.md | 1 |
21 files changed, 1469 insertions, 2110 deletions
diff --git a/content/_index.md b/content/_index.md index 6d1c67a..f3db632 100644 --- a/content/_index.md +++ b/content/_index.md @@ -51,6 +51,3 @@ implications when it comes time to add support for it to your engine. * [Yarn Spinner](https://yarnspinner.dev/). * [DLG](https://github.com/iLambda/language-dlg). Nowhere near as popular as the other two alternatives, but its approach shares more similarities with Tonkadur. - - -### Syntax Highlight Test: diff --git a/content/fate_v1/_index.md b/content/fate_v1/_index.md index 8b90a7a..50d24f6 100644 --- a/content/fate_v1/_index.md +++ b/content/fate_v1/_index.md @@ -1,6 +1,7 @@ --- title: "Fate (Version 1)" menuTitle: "Fate" +weight: 3 --- When using Tonkadur, Fate is the language the author writes in. This language is diff --git a/content/images/discord.svg b/content/images/discord.svg deleted file mode 100644 index 3d4cb8e..0000000 --- a/content/images/discord.svg +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - height="533.33331" - width="466.06668" - version="1.1" - id="Layer_1" - viewBox="-26.25 -50 88.358475 199.99999" - sodipodi:docname="discord.svg" - inkscape:version="0.92.4 5da689c313, 2019-01-14"> - <metadata - id="metadata1634"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <defs - id="defs1632" /> - <sodipodi:namedview - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" - inkscape:pageshadow="2" - inkscape:window-width="958" - inkscape:window-height="528" - id="namedview1630" - showgrid="false" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="-0.6" - fit-margin-bottom="0" - inkscape:pagecheckerboard="true" - inkscape:zoom="0.25833333" - inkscape:cx="193.98448" - inkscape:cy="-43.010726" - inkscape:window-x="961" - inkscape:window-y="20" - inkscape:window-maximized="0" - inkscape:current-layer="Layer_1" /> - <style - id="style41">.st0{fill:#fff}</style> - <path - id="path43" - d="m -0.11388706,33.9 c -5.70000004,0 -10.19999994,5 -10.19999994,11.1 0,6.1 4.5999999,11.1 10.19999994,11.1 5.69999996,0 10.20000006,-5 10.20000006,-11.1 0.1,-6.1 -4.5000001,-11.1 -10.20000006,-11.1 z m 36.50000006,0 c -5.7,0 -10.2,5 -10.2,11.1 0,6.1 4.6,11.1 10.2,11.1 5.7,0 10.2,-5 10.2,-11.1 0,-6.1 -4.5,-11.1 -10.2,-11.1 z" - class="st0" - inkscape:connector-curvature="0" - style="fill:#ffffff" /> - <path - id="path45" - d="m 84.986113,-50 h -134 c -11.3,0 -20.5,9.2 -20.5,20.6 v 135.2 c 0,11.4 9.2,20.6 20.5,20.6 h 113.4 l -5.3,-18.5 12.8,11.9 12.1,11.2 21.499997,19 V -29.4 c 0,-11.4 -9.199997,-20.6 -20.499997,-20.6 z m -38.6,130.6 c 0,0 -3.6,-4.3 -6.6,-8.1 13.1,-3.7 18.1,-11.9 18.1,-11.9 -4.1,2.7 -8,4.6 -11.5,5.9 -5,2.1 -9.8,3.5 -14.5,4.3 -9.6,1.8 -18.4,1.3 -25.9000001,-0.1 -5.69999996,-1.1 -10.6,-2.7 -14.7,-4.3 -2.2999999,-0.9 -4.7999999,-2 -7.2999999,-3.4 -0.3,-0.2 -0.6,-0.3 -0.9,-0.5 -0.2,-0.1 -0.3,-0.2 -0.4,-0.3 -1.8,-1 -2.8,-1.7 -2.8,-1.7 0,0 4.8,8 17.4999999,11.8 -3,3.8 -6.7,8.3 -6.7,8.3 C -31.413887,79.9 -39.813887,65.4 -39.813887,65.4 c 0,-32.2 14.4,-58.3 14.4,-58.3 14.4,-10.8 28.0999999,-10.5 28.0999999,-10.5 l 1,1.2 C -14.313887,3 -22.613887,10.9 -22.613887,10.9 c 0,0 2.2,-1.2 5.9,-2.9 C -6.0138871,3.3 2.4861129,2 5.9861129,1.7 c 0.6,-0.1 1.1,-0.2 1.7,-0.2 6.1000001,-0.8 13.0000001,-1 20.2000001,-0.2 9.5,1.1 19.7,3.9 30.1,9.6 0,0 -7.9,-7.5 -24.9,-12.7 l 1.4,-1.6 c 0,0 13.7,-0.3 28.1,10.5 0,0 14.4,26.1 14.4,58.3 0,0 -8.5,14.5 -30.6,15.2 z" - class="st0" - inkscape:connector-curvature="0" - style="fill:#ffffff" /> -</svg> diff --git a/content/images/github.svg b/content/images/github.svg deleted file mode 100644 index 081fab1..0000000 --- a/content/images/github.svg +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="11.493147mm" - height="11.209467mm" - viewBox="0 0 11.493147 11.209467" - version="1.1" - id="svg1567" - inkscape:version="0.92.4 5da689c313, 2019-01-14" - sodipodi:docname="github.svg"> - <defs - id="defs1561" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="0.35" - inkscape:cx="293.14789" - inkscape:cy="-998.81676" - inkscape:document-units="mm" - inkscape:current-layer="layer1" - showgrid="false" - inkscape:pagecheckerboard="true" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" - inkscape:window-width="958" - inkscape:window-height="1059" - inkscape:window-x="961" - inkscape:window-y="20" - inkscape:window-maximized="0" /> - <metadata - id="metadata1564"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(104.77634,126.6464)"> - <g - id="g1028" - transform="matrix(0.35277777,0,0,-0.35277777,-99.030291,-126.6464)"> - <path - d="m 0,0 c -8.995,0 -16.288,-7.293 -16.288,-16.29 0,-7.197 4.667,-13.302 11.14,-15.457 0.815,-0.149 1.112,0.354 1.112,0.786 0,0.386 -0.014,1.411 -0.022,2.77 -4.531,-0.984 -5.487,2.184 -5.487,2.184 -0.741,1.882 -1.809,2.383 -1.809,2.383 -1.479,1.01 0.112,0.99 0.112,0.99 1.635,-0.115 2.495,-1.679 2.495,-1.679 1.453,-2.489 3.813,-1.77 4.741,-1.353 0.148,1.052 0.568,1.77 1.034,2.177 -3.617,0.411 -7.42,1.809 -7.42,8.051 0,1.778 0.635,3.232 1.677,4.371 -0.168,0.412 -0.727,2.068 0.159,4.311 0,0 1.368,0.438 4.48,-1.67 1.299,0.362 2.693,0.542 4.078,0.548 1.383,-0.006 2.777,-0.186 4.078,-0.548 3.11,2.108 4.475,1.67 4.475,1.67 0.889,-2.243 0.33,-3.899 0.162,-4.311 1.044,-1.139 1.675,-2.593 1.675,-4.371 0,-6.258 -3.809,-7.635 -7.438,-8.038 0.585,-0.503 1.106,-1.497 1.106,-3.017 0,-2.177 -0.02,-3.934 -0.02,-4.468 0,-0.436 0.293,-0.943 1.12,-0.784 6.468,2.159 11.131,8.26 11.131,15.455 C 16.291,-7.293 8.997,0 0,0" - style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none" - id="path1030" - inkscape:connector-curvature="0" /> - </g> - </g> -</svg> diff --git a/content/images/reddit.svg b/content/images/reddit.svg deleted file mode 100644 index dd4332c..0000000 --- a/content/images/reddit.svg +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - height="317.92969" - width="317.92773" - stroke-miterlimit="1.4142" - viewBox="-39.158565 -22.4785 89.913733 53.599369" - version="1.1" - id="svg2284" - sodipodi:docname="reddit.svg" - style="clip-rule:evenodd;fill-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41419995" - inkscape:version="0.92.4 5da689c313, 2019-01-14"> - <metadata - id="metadata2290"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <defs - id="defs2288" /> - <sodipodi:namedview - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" - inkscape:pageshadow="2" - inkscape:window-width="958" - inkscape:window-height="528" - id="namedview2286" - showgrid="false" - inkscape:pagecheckerboard="true" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" - inkscape:zoom="0.73067701" - inkscape:cx="211.99214" - inkscape:cy="266.21581" - inkscape:window-x="961" - inkscape:window-y="20" - inkscape:window-maximized="0" - inkscape:current-layer="svg2284" /> - <path - style="fill:#ffffff;stroke-width:1" - d="M 5.7985782,-40.635958 A 44.957001,44.957001 0 0 0 -39.158565,4.3211838 44.957001,44.957001 0 0 0 5.7985782,49.278329 44.957001,44.957001 0 0 0 50.755169,4.3211838 44.957001,44.957001 0 0 0 5.7985782,-40.635958 Z m 18.7766088,17.81107 c 2.574999,0 4.667499,2.091948 4.667499,4.66695 0,2.576 -2.0925,4.668053 -4.667499,4.668053 -2.522,0 -4.559501,-1.98463 -4.667501,-4.45263 l -9.76419,-2.092366 -3.0043245,14.0560798 c 6.8669995,0.268001 13.0371745,2.359907 17.5431735,5.57890502 1.180001,-1.12699902 2.790343,-1.82391602 4.560341,-1.82391602 3.595002,0 6.544996,2.89699802 6.544996,6.544996 0,2.682001 -1.609149,4.9892 -3.862149,6.0092012 0.107001,0.643001 0.160738,1.340653 0.160738,1.984655 0,10.139 -11.749113,18.294392 -26.2341141,18.294392 -14.4849984,0 -26.2335599,-8.209392 -26.2335599,-18.294392 0,-0.698003 0.05274,-1.341654 0.160739,-1.984655 -2.254002,-1.0200012 -3.862704,-3.2730692 -3.862704,-5.9550682 0,-3.59499898 2.896997,-6.544996 6.544996,-6.544996 a 6.5883,6.5883 0 0 1 4.55979,1.82391602 C -8.4185833,-3.6187642 -2.1415118,-5.7107752 4.8324872,-5.9257742 L 8.1593955,-21.590901 c 0.052999,-0.321998 0.2142158,-0.589665 0.482214,-0.750665 0.215002,-0.160999 0.5369324,-0.21529 0.8589307,-0.16129 l 10.8899138,2.307236 c 0.751001,-1.556 2.360732,-2.629268 4.184733,-2.629268 z M -4.5014071,4.3211838 c -2.5760003,0 -4.668053,2.091948 -4.668053,4.666947 0,2.5750022 2.0920527,4.7210552 4.668053,4.6680532 2.5749991,0 4.66694716,-2.093051 4.66694716,-4.6680532 0,-2.574999 -2.09194806,-4.666947 -4.66694716,-4.666947 z m 20.5999711,0.05413 c -2.575,0 -4.666948,2.091948 -4.666948,4.666947 0,2.5750002 2.091948,4.6669482 4.666948,4.6669482 2.576,0 4.668052,-2.145948 4.668052,-4.6669482 0,-2.574999 -2.092052,-4.666947 -4.668052,-4.666947 z M -4.3948012,19.303032 c -0.3084996,0 -0.6174292,0.120249 -0.8589307,0.361247 -0.4819991,0.483 -0.4819991,1.233758 0,1.716759 3.1659996,3.164998 9.2818909,3.434065 11.1058888,3.434065 1.7700007,0 7.8863391,-0.215067 11.1053371,-3.434065 0.429,-0.483001 0.429,-1.233759 0,-1.716759 -0.483,-0.481999 -1.234309,-0.481999 -1.717307,0 -1.985,2.039003 -6.3300279,2.735874 -9.3880301,2.735874 -3.0579994,0 -7.3495789,-0.696871 -9.3885788,-2.735874 -0.2415016,-0.240998 -0.5498796,-0.361247 -0.8583793,-0.361247 z" - id="circle2278" - inkscape:connector-curvature="0" /> -</svg> diff --git a/content/images/tonkadur_logo_black.svg b/content/images/tonkadur_logo_black.svg deleted file mode 100644 index 3745257..0000000 --- a/content/images/tonkadur_logo_black.svg +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="51.232002mm" - height="16.4846mm" - viewBox="0 0 51.232002 16.4846" - version="1.1" - id="svg8" - inkscape:version="0.92.4 5da689c313, 2019-01-14" - sodipodi:docname="tonkadur_logo_black.svg"> - <defs - id="defs2" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="2.8" - inkscape:cx="65.374105" - inkscape:cy="9.8673039" - inkscape:document-units="mm" - inkscape:current-layer="layer1" - showgrid="false" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" - inkscape:window-width="1918" - inkscape:window-height="1059" - inkscape:window-x="1" - inkscape:window-y="20" - inkscape:window-maximized="0" /> - <metadata - id="metadata5"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(-61.119356,-51.9597)"> - <flowRoot - xml:space="preserve" - id="flowRoot841" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.66666698px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - transform="scale(0.26458333)"><flowRegion - id="flowRegion843"><rect - id="rect845" - width="73.571426" - height="125" - x="574.28571" - y="174.66254" /></flowRegion><flowPara - id="flowPara847"></flowPara></flowRoot> <g - id="g930"> - <text - id="text817" - y="63.331463" - x="67.892647" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1.93140244px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - xml:space="preserve"><tspan - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - y="63.331463" - x="67.892647" - id="tspan815" - sodipodi:role="line">onkadur</tspan></text> - <text - id="text924" - y="68.4189" - x="61.043156" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - xml:space="preserve"><tspan - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:25.39999962px;font-family:'Argos George';-inkscape-font-specification:'Argos George';stroke-width:0.26458332px" - y="68.4189" - x="61.043156" - id="tspan922" - sodipodi:role="line">T</tspan></text> - </g> - </g> -</svg> diff --git a/content/images/tonkadur_logo_black_as_path.svg b/content/images/tonkadur_logo_black_as_path.svg deleted file mode 100644 index e09be31..0000000 --- a/content/images/tonkadur_logo_black_as_path.svg +++ /dev/null @@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="51.232002mm" - height="16.4846mm" - viewBox="0 0 51.232002 16.4846" - version="1.1" - id="svg8" - inkscape:version="0.92.4 5da689c313, 2019-01-14" - sodipodi:docname="tonkadur_logo_black_as_path.svg"> - <defs - id="defs2" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="2.8" - inkscape:cx="65.374105" - inkscape:cy="9.8673039" - inkscape:document-units="mm" - inkscape:current-layer="layer1" - showgrid="false" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" - inkscape:window-width="958" - inkscape:window-height="1059" - inkscape:window-x="961" - inkscape:window-y="20" - inkscape:window-maximized="0" /> - <metadata - id="metadata5"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(-61.119356,-51.9597)"> - <flowRoot - xml:space="preserve" - id="flowRoot841" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.66666698px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - transform="scale(0.26458333)"><flowRegion - id="flowRegion843"><rect - id="rect845" - width="73.571426" - height="125" - x="574.28571" - y="174.66254" /></flowRegion><flowPara - id="flowPara847" /></flowRoot> <g - id="g930"> - <g - aria-label="onkadur" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1.93140244px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="text817"> - <path - d="m 67.985354,60.488438 q 0,-1.220646 0.818915,-2.085914 0.818914,-0.88072 2.02411,-0.88072 1.189743,0 2.03956,0.865269 0.865269,0.865268 0.865269,2.055012 0,0.957975 -0.556244,1.745988 -0.818915,1.14339 -2.441293,1.14339 -1.251549,0 -2.008658,-0.772561 -0.741659,-0.772561 -0.741659,-2.070464 z m 2.750317,-2.379487 q -0.695305,0.09271 -1.035232,1.004329 -0.231768,0.618049 -0.231768,1.514219 0,0.88072 0.370829,1.452415 0.432635,0.664403 1.267,0.664403 0.710757,0 1.081586,-0.664403 0.293573,-0.525341 0.293573,-1.297902 0,-0.664403 -0.216317,-1.189744 -0.278122,-0.710756 -0.849817,-0.710756 -0.139061,0 -0.355378,0.123609 -0.216317,0.12361 -0.231768,0.12361 v -0.494439 q 0.293573,-0.216317 0.478987,-0.478988 -0.139061,-0.0309 -0.278122,-0.04635 -0.154512,-0.01545 -0.293573,0 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path829" /> - <path - d="m 74.352222,57.954438 q 0.09271,0 0.818915,-0.154512 0.50989,-0.108158 0.788012,-0.108158 0.169963,0 0.324476,0.231768 0.07726,0.12361 0.216317,0.370829 0.200865,-0.278122 0.834365,-0.448085 0.540793,-0.154512 0.973427,-0.154512 0.849817,0 0.927073,0.01545 0.648952,0.0618 0.648952,0.772561 v 2.348585 q 0,0.803464 0.417183,1.63783 0.0309,0.07726 0.556244,0.988878 h -1.375159 q -0.664402,0 -0.865268,-0.911622 -0.09271,-0.417183 -0.09271,-1.421513 v -0.803463 q 0.01545,-0.108158 0.01545,-0.278122 0.04635,-1.931402 -0.726208,-1.931402 -0.370829,0 -0.834366,0.169963 -0.618048,0.216317 -0.618048,0.571695 v 3.1675 q 0,0.772561 0.293573,1.251549 h -1.761439 q 0.12361,-0.772561 0.12361,-2.843024 0,-1.00433 -0.0309,-1.962305 -0.216317,-0.04635 -0.309024,-0.09271 -0.324476,-0.154512 -0.324476,-0.417183 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path831" /> - <path - d="m 81.382286,55.18867 q 0.849817,-0.525341 1.792342,-1.467866 l -0.169964,5.979622 q 0.478988,-0.478988 1.282451,-0.757109 0.231769,-0.07726 1.452415,-0.386281 0.664402,-0.247219 0.911622,-0.896171 0.540793,0.355378 0.540793,0.896171 0,0.339927 -0.37083,0.50989 -0.247219,0.07726 -0.788012,0.12361 -0.540793,0.0309 -0.741658,0.108159 0.834365,1.931402 1.220646,2.642158 0.200866,0.355378 0.880719,1.483317 -0.432634,0.06181 -0.957975,0.06181 -1.050683,0 -1.483317,-1.297902 -0.463537,-1.359708 -0.988878,-2.549452 -0.478988,0.139061 -0.927073,0.494439 0.01545,0.834366 0.01545,1.653281 0.0309,0.988878 0.154512,1.637829 h -1.77689 q 0.01545,-0.01545 0.200866,-0.602597 0.09271,-0.293574 0.09271,-0.463537 v -2.456744 q 0,-0.231768 0,-0.494439 0.01545,-0.293573 0.01545,-0.309024 0.01545,-3.383817 -0.355378,-3.909159 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path833" /> - <path - d="m 88.144366,60.565695 q 0,-1.205196 0.710756,-2.055013 0.726207,-0.865268 1.9005,-0.865268 0.216317,0 0.618049,0.07726 0.417183,0.07726 0.6335,0.07726 0.309024,0 0.417183,-0.154512 0.818914,0.370829 1.406061,0.571695 -0.24722,1.050683 -0.24722,2.394939 0,1.761439 0.432634,2.688512 -0.169963,-0.0309 -0.525341,-0.108158 -0.339927,-0.07726 -0.540793,-0.07726 -0.324475,0 -0.788012,0.09271 -0.911622,0.185415 -1.267,0.185415 -1.236098,0 -1.993207,-0.772561 -0.75711,-0.788012 -0.75711,-2.055012 z m 3.136598,-2.441293 q -0.865269,0 -1.313354,0.679854 -0.370829,0.571695 -0.370829,1.483317 0,1.328804 0.772561,2.039561 0.525341,0.494439 1.004329,0.494439 0.788012,0 0.788012,-0.973427 V 58.912414 Q 91.914464,58.448877 91.86811,58.387073 91.651793,58.124402 91.280964,58.124402 Z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path835" /> - <path - d="m 100.17531,53.689902 q 0.21632,0.556244 0.20087,1.637829 -0.0155,0.618049 -0.0618,2.889378 -0.0618,2.14772 -0.0463,2.904829 0,0.185415 0.10816,0.788013 0.13906,0.834366 0.47899,1.328805 -0.71076,-0.12361 -1.313356,-0.12361 -0.417183,0 -1.174293,0.12361 -0.75711,0.108158 -1.097037,0.108158 H 97.08507 q -1.066134,0 -1.715086,-0.834366 -0.571695,-0.772561 -0.571695,-1.869597 0,-1.050683 0.556244,-1.977756 0.6335,-1.050683 1.622378,-1.050683 0.185415,0 0.262671,0.01545 0.370829,0.06181 0.896171,0.185414 0.448085,0.154513 0.757109,0.478988 v -0.741658 q 0.01545,-0.09271 0.01545,-0.216317 0.01545,-1.328805 -0.309025,-2.364037 0.417183,-0.309024 0.896171,-0.741658 0.262671,-0.24722 0.67985,-0.540793 z m -2.549448,4.511756 q -0.664402,0 -1.004329,0.741659 -0.262671,0.556243 -0.262671,1.313353 0,1.205195 0.24722,1.715086 0.355378,0.710756 1.282451,0.710756 0.50989,0 1.004329,-0.07726 v -3.553781 q 0,-0.38628 -0.463536,-0.6335 -0.401732,-0.216317 -0.803464,-0.216317 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path837" /> - <path - d="m 104.74332,57.84628 1.9314,0.0309 v 4.697171 q 0,0.401732 0.33993,0.741659 h -1.8696 v -0.293574 q 0,-0.216317 0.0155,-0.324475 0,-0.185415 -0.0155,-0.24722 l -0.58714,0.07726 q -0.20087,0.0309 -1.32881,0.571696 -0.44808,0.216317 -0.6335,0.216317 -0.78801,0 -0.78801,-0.679854 v -3.631037 q 0,-0.463536 -0.55624,-1.158841 h 1.63783 q 0.29357,0.417183 0.29357,0.679854 l -0.0309,3.801 q 0,0.293573 0.20086,0.293573 0.24722,-0.07726 1.01978,-0.386281 0.50989,-0.200866 0.86527,-0.200866 v -3.306561 q 0,-0.309024 -0.49444,-0.880719 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path839" /> - <path - d="m 109.94097,58.139853 q 0.64895,-0.448085 0.6953,-0.478988 0.50989,-0.293573 0.92708,-0.293573 0.78801,0 0.78801,0.772561 0,0.463537 -0.30903,0.741659 -0.30902,0.278122 -0.77256,0.278122 0.29358,-0.339927 0.29358,-0.540793 0,-0.169964 -0.20087,-0.278122 -0.18541,-0.108159 -0.38628,-0.108159 -0.67985,0 -1.03523,0.896171 -0.24722,0.6335 -0.24722,1.467866 0,0.88072 0.30902,1.591476 0.38628,0.865268 0.43264,1.14339 -1.28245,0 -1.63783,-0.231768 -0.46354,-0.309025 -0.46354,-1.436964 v -2.843024 q 0,-0.432634 -0.29357,-0.865269 -0.13906,-0.200865 -0.29358,-0.355378 0.35538,-0.04635 1.18975,-0.04635 h 0.27812 q 0.44809,0 0.55624,0.216317 0.10816,0.200866 0.16997,0.370829 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path841" /> - </g> - <g - aria-label="T" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - id="text924"> - <path - d="m 67.520156,52.3661 q 0.127,0 2.286,0.127 0.8636,0.0508 1.4224,0.0508 1.955799,0 3.860799,-0.5842 -0.1524,1.397 -1.2192,2.2606 -1.0668,0.8636 -2.489199,0.8636 -1.1938,0 -3.9116,-1.016 -2.7178,-1.0414 -3.81,-1.0414 -1.9304,0 -1.9304,1.9304 0,0.8128 0.6096,1.3716 0.3556,0.3302 1.3208,0.7874 -0.508,0.889 -0.7874,0.889 -1.0414,-0.3556 -1.4478,-1.143 -0.3048,-0.5842 -0.3048,-1.3716 0,-1.27 0.508,-1.9812 0.508,-0.7112 1.7018,-1.143 0.4064,-0.1524 1.524,-0.1524 1.1938,0 2.159,0.0762 0.1016,0 0.508,0.0762 z m -4.318,9.1694 q 0,-1.5494 0.9652,-3.81 1.0414,-2.3622 2.2352,-3.175 -0.9652,2.9718 -0.9652,4.2672 0,2.3622 1.1684,4.3942 1.7018,2.9972 5.1054,2.9972 0.635,0 1.549399,-0.3556 0.9398,-0.381 1.397,-0.4064 -0.8128,1.27 -2.565399,2.1336 -1.7272,0.8636 -3.302,0.8636 -1.778,0 -3.5306,-1.8288 -2.0574,-2.1336 -2.0574,-5.08 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:25.39999962px;font-family:'Argos George';-inkscape-font-specification:'Argos George';stroke-width:0.26458332px" - id="path844" /> - </g> - </g> - </g> -</svg> diff --git a/content/images/tonkadur_logo_white.svg b/content/images/tonkadur_logo_white.svg deleted file mode 100644 index f17e213..0000000 --- a/content/images/tonkadur_logo_white.svg +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="51.232002mm" - height="16.4846mm" - viewBox="0 0 51.232002 16.4846" - version="1.1" - id="svg8" - inkscape:version="0.92.4 5da689c313, 2019-01-14" - sodipodi:docname="tonkadur_logo_white.svg"> - <defs - id="defs2" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="2.8" - inkscape:cx="65.374106" - inkscape:cy="9.8673018" - inkscape:document-units="mm" - inkscape:current-layer="layer1" - showgrid="false" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" - inkscape:window-width="1918" - inkscape:window-height="1059" - inkscape:window-x="1" - inkscape:window-y="20" - inkscape:window-maximized="0" /> - <metadata - id="metadata5"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(-61.119356,-51.9597)"> - <flowRoot - xml:space="preserve" - id="flowRoot841" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.66666698px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - transform="scale(0.26458333)"><flowRegion - id="flowRegion843"><rect - id="rect845" - width="73.571426" - height="125" - x="574.28571" - y="174.66254" /></flowRegion><flowPara - id="flowPara847"></flowPara></flowRoot> <g - id="g930" - style="fill:#ffffff"> - <text - id="text817" - y="63.331463" - x="67.892647" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1.93140244px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - xml:space="preserve"><tspan - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - y="63.331463" - x="67.892647" - id="tspan815" - sodipodi:role="line">onkadur</tspan></text> - <text - id="text924" - y="68.4189" - x="61.043156" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - xml:space="preserve"><tspan - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:25.39999962px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;stroke-width:0.26458332px" - y="68.4189" - x="61.043156" - id="tspan922" - sodipodi:role="line">T</tspan></text> - </g> - </g> -</svg> diff --git a/content/images/tonkadur_logo_white_as_path.svg b/content/images/tonkadur_logo_white_as_path.svg deleted file mode 100644 index 04c3039..0000000 --- a/content/images/tonkadur_logo_white_as_path.svg +++ /dev/null @@ -1,118 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> - -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://creativecommons.org/ns#" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="51.232002mm" - height="16.4846mm" - viewBox="0 0 51.232002 16.4846" - version="1.1" - id="svg8" - inkscape:version="0.92.4 5da689c313, 2019-01-14" - sodipodi:docname="tonkadur_logo_white_as_path.svg"> - <defs - id="defs2" /> - <sodipodi:namedview - id="base" - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1.0" - inkscape:pageopacity="0.0" - inkscape:pageshadow="2" - inkscape:zoom="2.8" - inkscape:cx="65.374106" - inkscape:cy="9.8673018" - inkscape:document-units="mm" - inkscape:current-layer="layer1" - showgrid="false" - fit-margin-top="0" - fit-margin-left="0" - fit-margin-right="0" - fit-margin-bottom="0" - inkscape:window-width="1918" - inkscape:window-height="1059" - inkscape:window-x="1" - inkscape:window-y="20" - inkscape:window-maximized="0" /> - <metadata - id="metadata5"> - <rdf:RDF> - <cc:Work - rdf:about=""> - <dc:format>image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> - </cc:Work> - </rdf:RDF> - </metadata> - <g - inkscape:label="Layer 1" - inkscape:groupmode="layer" - id="layer1" - transform="translate(-61.119356,-51.9597)"> - <flowRoot - xml:space="preserve" - id="flowRoot841" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:10.66666698px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - transform="scale(0.26458333)"><flowRegion - id="flowRegion843"><rect - id="rect845" - width="73.571426" - height="125" - x="574.28571" - y="174.66254" /></flowRegion><flowPara - id="flowPara847" /></flowRoot> <g - id="g930" - style="fill:#ffffff"> - <g - aria-label="onkadur" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1.93140244px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="text817"> - <path - d="m 67.985354,60.488438 q 0,-1.220646 0.818915,-2.085914 0.818914,-0.88072 2.02411,-0.88072 1.189743,0 2.03956,0.865269 0.865269,0.865268 0.865269,2.055012 0,0.957975 -0.556244,1.745988 -0.818915,1.14339 -2.441293,1.14339 -1.251549,0 -2.008658,-0.772561 -0.741659,-0.772561 -0.741659,-2.070464 z m 2.750317,-2.379487 q -0.695305,0.09271 -1.035232,1.004329 -0.231768,0.618049 -0.231768,1.514219 0,0.88072 0.370829,1.452415 0.432635,0.664403 1.267,0.664403 0.710757,0 1.081586,-0.664403 0.293573,-0.525341 0.293573,-1.297902 0,-0.664403 -0.216317,-1.189744 -0.278122,-0.710756 -0.849817,-0.710756 -0.139061,0 -0.355378,0.123609 -0.216317,0.12361 -0.231768,0.12361 v -0.494439 q 0.293573,-0.216317 0.478987,-0.478988 -0.139061,-0.0309 -0.278122,-0.04635 -0.154512,-0.01545 -0.293573,0 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path829" /> - <path - d="m 74.352222,57.954438 q 0.09271,0 0.818915,-0.154512 0.50989,-0.108158 0.788012,-0.108158 0.169963,0 0.324476,0.231768 0.07726,0.12361 0.216317,0.370829 0.200865,-0.278122 0.834365,-0.448085 0.540793,-0.154512 0.973427,-0.154512 0.849817,0 0.927073,0.01545 0.648952,0.0618 0.648952,0.772561 v 2.348585 q 0,0.803464 0.417183,1.63783 0.0309,0.07726 0.556244,0.988878 h -1.375159 q -0.664402,0 -0.865268,-0.911622 -0.09271,-0.417183 -0.09271,-1.421513 v -0.803463 q 0.01545,-0.108158 0.01545,-0.278122 0.04635,-1.931402 -0.726208,-1.931402 -0.370829,0 -0.834366,0.169963 -0.618048,0.216317 -0.618048,0.571695 v 3.1675 q 0,0.772561 0.293573,1.251549 h -1.761439 q 0.12361,-0.772561 0.12361,-2.843024 0,-1.00433 -0.0309,-1.962305 -0.216317,-0.04635 -0.309024,-0.09271 -0.324476,-0.154512 -0.324476,-0.417183 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path831" /> - <path - d="m 81.382286,55.18867 q 0.849817,-0.525341 1.792342,-1.467866 l -0.169964,5.979622 q 0.478988,-0.478988 1.282451,-0.757109 0.231769,-0.07726 1.452415,-0.386281 0.664402,-0.247219 0.911622,-0.896171 0.540793,0.355378 0.540793,0.896171 0,0.339927 -0.37083,0.50989 -0.247219,0.07726 -0.788012,0.12361 -0.540793,0.0309 -0.741658,0.108159 0.834365,1.931402 1.220646,2.642158 0.200866,0.355378 0.880719,1.483317 -0.432634,0.06181 -0.957975,0.06181 -1.050683,0 -1.483317,-1.297902 -0.463537,-1.359708 -0.988878,-2.549452 -0.478988,0.139061 -0.927073,0.494439 0.01545,0.834366 0.01545,1.653281 0.0309,0.988878 0.154512,1.637829 h -1.77689 q 0.01545,-0.01545 0.200866,-0.602597 0.09271,-0.293574 0.09271,-0.463537 v -2.456744 q 0,-0.231768 0,-0.494439 0.01545,-0.293573 0.01545,-0.309024 0.01545,-3.383817 -0.355378,-3.909159 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path833" /> - <path - d="m 88.144366,60.565695 q 0,-1.205196 0.710756,-2.055013 0.726207,-0.865268 1.9005,-0.865268 0.216317,0 0.618049,0.07726 0.417183,0.07726 0.6335,0.07726 0.309024,0 0.417183,-0.154512 0.818914,0.370829 1.406061,0.571695 -0.24722,1.050683 -0.24722,2.394939 0,1.761439 0.432634,2.688512 -0.169963,-0.0309 -0.525341,-0.108158 -0.339927,-0.07726 -0.540793,-0.07726 -0.324475,0 -0.788012,0.09271 -0.911622,0.185415 -1.267,0.185415 -1.236098,0 -1.993207,-0.772561 -0.75711,-0.788012 -0.75711,-2.055012 z m 3.136598,-2.441293 q -0.865269,0 -1.313354,0.679854 -0.370829,0.571695 -0.370829,1.483317 0,1.328804 0.772561,2.039561 0.525341,0.494439 1.004329,0.494439 0.788012,0 0.788012,-0.973427 V 58.912414 Q 91.914464,58.448877 91.86811,58.387073 91.651793,58.124402 91.280964,58.124402 Z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path835" /> - <path - d="m 100.17531,53.689902 q 0.21632,0.556244 0.20087,1.637829 -0.0155,0.618049 -0.0618,2.889378 -0.0618,2.14772 -0.0463,2.904829 0,0.185415 0.10816,0.788013 0.13906,0.834366 0.47899,1.328805 -0.71076,-0.12361 -1.313356,-0.12361 -0.417183,0 -1.174293,0.12361 -0.75711,0.108158 -1.097037,0.108158 H 97.08507 q -1.066134,0 -1.715086,-0.834366 -0.571695,-0.772561 -0.571695,-1.869597 0,-1.050683 0.556244,-1.977756 0.6335,-1.050683 1.622378,-1.050683 0.185415,0 0.262671,0.01545 0.370829,0.06181 0.896171,0.185414 0.448085,0.154513 0.757109,0.478988 v -0.741658 q 0.01545,-0.09271 0.01545,-0.216317 0.01545,-1.328805 -0.309025,-2.364037 0.417183,-0.309024 0.896171,-0.741658 0.262671,-0.24722 0.67985,-0.540793 z m -2.549448,4.511756 q -0.664402,0 -1.004329,0.741659 -0.262671,0.556243 -0.262671,1.313353 0,1.205195 0.24722,1.715086 0.355378,0.710756 1.282451,0.710756 0.50989,0 1.004329,-0.07726 v -3.553781 q 0,-0.38628 -0.463536,-0.6335 -0.401732,-0.216317 -0.803464,-0.216317 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path837" /> - <path - d="m 104.74332,57.84628 1.9314,0.0309 v 4.697171 q 0,0.401732 0.33993,0.741659 h -1.8696 v -0.293574 q 0,-0.216317 0.0155,-0.324475 0,-0.185415 -0.0155,-0.24722 l -0.58714,0.07726 q -0.20087,0.0309 -1.32881,0.571696 -0.44808,0.216317 -0.6335,0.216317 -0.78801,0 -0.78801,-0.679854 v -3.631037 q 0,-0.463536 -0.55624,-1.158841 h 1.63783 q 0.29357,0.417183 0.29357,0.679854 l -0.0309,3.801 q 0,0.293573 0.20086,0.293573 0.24722,-0.07726 1.01978,-0.386281 0.50989,-0.200866 0.86527,-0.200866 v -3.306561 q 0,-0.309024 -0.49444,-0.880719 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path839" /> - <path - d="m 109.94097,58.139853 q 0.64895,-0.448085 0.6953,-0.478988 0.50989,-0.293573 0.92708,-0.293573 0.78801,0 0.78801,0.772561 0,0.463537 -0.30903,0.741659 -0.30902,0.278122 -0.77256,0.278122 0.29358,-0.339927 0.29358,-0.540793 0,-0.169964 -0.20087,-0.278122 -0.18541,-0.108159 -0.38628,-0.108159 -0.67985,0 -1.03523,0.896171 -0.24722,0.6335 -0.24722,1.467866 0,0.88072 0.30902,1.591476 0.38628,0.865268 0.43264,1.14339 -1.28245,0 -1.63783,-0.231768 -0.46354,-0.309025 -0.46354,-1.436964 v -2.843024 q 0,-0.432634 -0.29357,-0.865269 -0.13906,-0.200865 -0.29358,-0.355378 0.35538,-0.04635 1.18975,-0.04635 h 0.27812 q 0.44809,0 0.55624,0.216317 0.10816,0.200866 0.16997,0.370829 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15.45121956px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.78100002;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:markers stroke fill" - id="path841" /> - </g> - <g - aria-label="T" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:2.82222223px;line-height:125%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, ';letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" - id="text924"> - <path - d="m 67.520156,52.3661 q 0.127,0 2.286,0.127 0.8636,0.0508 1.4224,0.0508 1.955799,0 3.860799,-0.5842 -0.1524,1.397 -1.2192,2.2606 -1.0668,0.8636 -2.489199,0.8636 -1.1938,0 -3.9116,-1.016 -2.7178,-1.0414 -3.81,-1.0414 -1.9304,0 -1.9304,1.9304 0,0.8128 0.6096,1.3716 0.3556,0.3302 1.3208,0.7874 -0.508,0.889 -0.7874,0.889 -1.0414,-0.3556 -1.4478,-1.143 -0.3048,-0.5842 -0.3048,-1.3716 0,-1.27 0.508,-1.9812 0.508,-0.7112 1.7018,-1.143 0.4064,-0.1524 1.524,-0.1524 1.1938,0 2.159,0.0762 0.1016,0 0.508,0.0762 z m -4.318,9.1694 q 0,-1.5494 0.9652,-3.81 1.0414,-2.3622 2.2352,-3.175 -0.9652,2.9718 -0.9652,4.2672 0,2.3622 1.1684,4.3942 1.7018,2.9972 5.1054,2.9972 0.635,0 1.549399,-0.3556 0.9398,-0.381 1.397,-0.4064 -0.8128,1.27 -2.565399,2.1336 -1.7272,0.8636 -3.302,0.8636 -1.778,0 -3.5306,-1.8288 -2.0574,-2.1336 -2.0574,-5.08 z" - style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:25.39999962px;font-family:'Argos George';-inkscape-font-specification:'Argos George';fill:#ffffff;stroke-width:0.26458332px" - id="path844" /> - </g> - </g> - </g> -</svg> diff --git a/content/learn/03.variables/default.md b/content/learn/03.variables/default.md index 6c2cdf4..3d0e962 100644 --- a/content/learn/03.variables/default.md +++ b/content/learn/03.variables/default.md @@ -18,61 +18,61 @@ We are trying to add a variable that corresponds to money. An `int` is thus appropriate. **main.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) +(local int hero_money) +(local int price_of_booze) - (local int hero_money) - (local int price_of_booze) +(set hero_money 42) +(set price_of_booze 12) - (set hero_money 42) - (set price_of_booze 12) +Once upon a time, starting a story with these words wasn't considered +a cliche. Starting in a tavern might also not be seen as very +original. Having the main character be an street orphan, raised by +some mysterious sage all to end up as a mercenary with an uncommonly +strong sense of honor probably isn't going to lead to any praises for +novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second +either. Drinking to forget that you are a stereotypical hero isn't +going to solve anything. Worse, the alcoholic trait is part of the +image. +(newline) +As you contemplate your own pointless description, your gaze leaves +what turns out to be an already empty glass in your hand and finds the +barman. - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. +(player_choice + ( + ( Ask the barman for a refill ) + Staring straight at the barman, you raise your glass and + proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the + beer being poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (set hero_money + (- (var hero_money) (var price_of_booze)) + ) + ) + ( + ( Fall asleep ) + Deciding to break away from the expected storyline, you promptly + fall asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that + someone stole all your money. + (set hero_money 0) + ) +) - (player_choice - ( - ( Ask the barman for a refill ) - Staring straight at the barman, you raise your glass and - proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the - beer being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (set hero_money - (- (var hero_money) (var price_of_booze)) - ) - ) - ( - ( Fall asleep ) - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that - someone stole all your money. - (set hero_money 0) - ) - ) - - (end) +(end) +{{< /fatecode >}} * `(local int hero_money)` declares an `int` variable with the name `hero_money`. diff --git a/content/learn/04.sequences/default.md b/content/learn/04.sequences/default.md index cecbff8..8b56ee7 100644 --- a/content/learn/04.sequences/default.md +++ b/content/learn/04.sequences/default.md @@ -29,77 +29,78 @@ Sequences can take parameters. **main.fate:** - (fate_version 1) - - (global int hero_money) - - (set hero_money 42) - - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. - - (player_choice - ( - ( Ask the barman for a refill ) - (visit get_a_refill) - ) - ( - ( Fall asleep ) - (jump_to fall_asleep) - ) - ) - - (define_sequence pay ( (int cost) ) - (set hero_money - (- (var hero_money) (var cost)) - ) - ) - - (define_sequence get_a_refill () - (local int price_of_booze) - - (set price_of_booze 12) - - Staring straight at the barman, you raise your glass and proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the beer - being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (visit pay (var price_of_booze)) - ) - - (define_sequence fall_asleep () - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that someone - stole all your money. - (set hero_money 0) - (newline) - This set-back was more than you could take. You give up on this - barely coherent story. - (end) - ) - - (end) +{{< fatecode >}}(fate_version 1) + +(global int hero_money) + +(set hero_money 42) + +Once upon a time, starting a story with these words wasn't considered +a cliche. Starting in a tavern might also not be seen as very +original. Having the main character be an street orphan, raised by +some mysterious sage all to end up as a mercenary with an uncommonly +strong sense of honor probably isn't going to lead to any praises for +novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second +either. Drinking to forget that you are a stereotypical hero isn't +going to solve anything. Worse, the alcoholic trait is part of the +image. +(newline) +As you contemplate your own pointless description, your gaze leaves +what turns out to be an already empty glass in your hand and finds the +barman. + +(player_choice + ( + ( Ask the barman for a refill ) + (visit get_a_refill) + ) + ( + ( Fall asleep ) + (jump_to fall_asleep) + ) +) + +(define_sequence pay ( (int cost) ) + (set hero_money + (- (var hero_money) (var cost)) + ) +) + +(define_sequence get_a_refill () + (local int price_of_booze) + + (set price_of_booze 12) + + Staring straight at the barman, you raise your glass and proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the beer + being poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (visit pay (var price_of_booze)) +) + +(define_sequence fall_asleep () + Deciding to break away from the expected storyline, you promptly + fall asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that someone + stole all your money. + (set hero_money 0) + (newline) + This set-back was more than you could take. You give up on this + barely coherent story. + (end) +) + +(end) +{{< /fatecode >}} * `(visit get_a_refill)` makes a visit to the sequence `get_a_refill`. Since that sequence does not take parameters, none need to be provided. diff --git a/content/learn/05.files/default.md b/content/learn/05.files/default.md index da78206..06b6436 100644 --- a/content/learn/05.files/default.md +++ b/content/learn/05.files/default.md @@ -13,101 +13,103 @@ but only if that file has not already been explored. * Create a new file, `data.fate`, with the following content: - (fate_version 1) +{{< fatecode >}}(fate_version 1) - (global int hero_money) +(global int hero_money) - (set hero_money 42) +(set hero_money 42) +{{< /fatecode >}} * Create a new file, `actions.fate`, with the following content: - (fate_version 1) +{{< fatecode >}}(fate_version 1) - (require data.fate) +(require data.fate) - (define_sequence pay ( (int cost) ) - (set hero_money - (- (var hero_money) (var cost)) - ) - ) +(define_sequence pay ( (int cost) ) + (set hero_money + (- (var hero_money) (var cost)) + ) +) +{{< /fatecode >}} * Create a new file, `get_a_refill.fate`, with the following content: - (fate_version 1) +{{< fatecode >}}(fate_version 1) - (require actions.fate) +(require actions.fate) - (define_sequence get_a_refill () - (local int price_of_booze) +(define_sequence get_a_refill () + (local int price_of_booze) - (set price_of_booze 12) + (set price_of_booze 12) - Staring straight at the barman, you raise your glass and proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the beer - being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (visit pay (var price_of_booze)) - ) + Staring straight at the barman, you raise your glass and proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the beer being + poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (visit pay (var price_of_booze)) +) +{{< /fatecode >}} * Create a new file, `falling_asleep.fate`, with the following content: - (fate_version 1) - - (require data.fate) - - (define_sequence fall_asleep () - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that someone - stole all your money. - (set hero_money 0) - (newline) - This set-back was more than you could take. You give up on this - barely coherent story. - (end) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(define_sequence fall_asleep () + Deciding to break away from the expected storyline, you promptly fall + asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that someone stole all + your money. + (set hero_money 0) + (newline) + This set-back was more than you could take. You give up on this barely + coherent story. + (end) +) +{{< /fatecode >}} **main.fate:** - (fate_version 1) - - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. - - (player_choice - ( - ( Ask the barman for a refill ) - (visit get_a_refill) - ) - ( - ( Fall asleep ) - (jump_to fall_asleep) - ) - ) - - (require get_a_refill.fate) - (require falling_asleep.fate) - - (end) +{{< fatecode >}}(fate_version 1) + +Once upon a time, starting a story with these words wasn't considered a cliche. +Starting in a tavern might also not be seen as very original. Having the main +character be an street orphan, raised by some mysterious sage all to end up as +a mercenary with an uncommonly strong sense of honor probably isn't going to +lead to any praises for novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second either. +Drinking to forget that you are a stereotypical hero isn't going to solve +anything. Worse, the alcoholic trait is part of the image. +(newline) +As you contemplate your own pointless description, your gaze leaves what turns +out to be an already empty glass in your hand and finds the barman. + +(player_choice + ( + ( Ask the barman for a refill ) + (visit get_a_refill) + ) + ( + ( Fall asleep ) + (jump_to fall_asleep) + ) +) + +(require get_a_refill.fate) +(require falling_asleep.fate) + +(end) +{{< /fatecode >}} With this, the story is much more easy to follow. Let's continue by looking at [the actually-not-scary-at-all pointers](/learn/pointers). diff --git a/content/learn/06.pointers/default.md b/content/learn/06.pointers/default.md index a4108bb..8432b3e 100644 --- a/content/learn/06.pointers/default.md +++ b/content/learn/06.pointers/default.md @@ -22,69 +22,68 @@ Given a pointer `p`, the variable being pointed to can be referred to using `(at p)`. **data.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) - - (global int hero_money) - (global string hero_name) - - (set hero_money 42) +(global int hero_money) +(global string hero_name) +(set hero_money 42) +{{< /fatecode >}} **get_a_refill.fate:** - - (fate_version 1) - - (require data.fate) - (require actions.fate) - - (define_sequence lower_price_of_booze - ( - ((ptr int) price_pointer) - (int decrease) - ) - Great! The price of booze just lowered from (at price_pointer) - (set (at price_pointer) - (- - (at price_pointer) - (var decrease) - ) - ) - to (at price_pointer)! - ) - - (define_sequence get_a_refill () - (local int price_of_booze) - - (set price_of_booze 12) - - Staring straight at the barman, you raise your glass and proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the beer - being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (visit pay (var price_of_booze)) - (newline) - The barman sighs, then asks: - (prompt_string (ptr hero_name) 2 64 What is your name, then, hero?) - (var hero_name)? - (newline) - The barman looks surprised. - (newline) - (visit lower_price_of_booze (ptr price_of_booze) 4) - (newline) - "I have heard of you, (var hero_name)," the barman exclaims, "I have - a quest for you!" - (newline) - It's your turn to sigh. - (newline) - The barman hands you a bag, and says: - (newline) - "Take this pre-payment and head to the smithy." - (newline) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) +(require actions.fate) + +(define_sequence lower_price_of_booze + ( + ((ptr int) price_pointer) + (int decrease) + ) + Great! The price of booze just lowered from (at price_pointer) + (set (at price_pointer) + (- + (at price_pointer) + (var decrease) + ) + ) + to (at price_pointer)! +) + +(define_sequence get_a_refill () + (local int price_of_booze) + + (set price_of_booze 12) + + Staring straight at the barman, you raise your glass and proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the beer being + poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (visit pay (var price_of_booze)) + (newline) + The barman sighs, then asks: + (prompt_string (ptr hero_name) 2 64 What is your name, then, hero?) + (var hero_name)? + (newline) + The barman looks surprised. + (newline) + (visit lower_price_of_booze (ptr price_of_booze) 4) + (newline) + "I have heard of you, (var hero_name)," the barman exclaims, "I have a quest + for you!" + (newline) + It's your turn to sigh. + (newline) + The barman hands you a bag, and says: + (newline) + "Take this pre-payment and head to the smithy." + (newline) +) +{{< /fatecode >}} * `(prompt_string (ptr hero_name) 2 64 What is your name, then, hero?)` prompts the player with `What is your name, then, hero?` and expects a string input @@ -102,70 +101,67 @@ sheet, so [let's create one](/learn/structures). ## Unchanged Files **actions.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) +(require data.fate) - (require data.fate) - - (define_sequence pay ( (int cost) ) - (set hero_money - (- (var hero_money) (var cost)) - ) - ) +(define_sequence pay ( (int cost) ) + (set hero_money + (- (var hero_money) (var cost)) + ) +) +{{< /fatecode >}} **falling_asleep.fate:** - - (fate_version 1) - - (require data.fate) - - (define_sequence fall_asleep () - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that someone - stole all your money. - (set hero_money 0) - (newline) - This set-back was more than you could take. You give up on this - barely coherent story. - (end) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(define_sequence fall_asleep () + Deciding to break away from the expected storyline, you promptly fall + asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that someone stole all + your money. + (set hero_money 0) + (newline) + This set-back was more than you could take. You give up on this barely + coherent story. + (end) +) +{{< /fatecode >}} **main.fate:** - - (fate_version 1) - - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. - - (player_choice - ( - ( Ask the barman for a refill ) - (visit get_a_refill) - ) - ( - ( Fall asleep ) - (jump_to fall_asleep) - ) - ) - - (require get_a_refill.fate) - (require falling_asleep.fate) - - (end) +{{< fatecode >}}(fate_version 1) + +Once upon a time, starting a story with these words wasn't considered a cliche. +Starting in a tavern might also not be seen as very original. Having the main +character be an street orphan, raised by some mysterious sage all to end up as +a mercenary with an uncommonly strong sense of honor probably isn't going to +lead to any praises for novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second either. +Drinking to forget that you are a stereotypical hero isn't going to solve +anything. Worse, the alcoholic trait is part of the image. +(newline) +As you contemplate your own pointless description, your gaze leaves what turns +out to be an already empty glass in your hand and finds the barman. + +(player_choice + ( + ( Ask the barman for a refill ) + (visit get_a_refill) + ) + ( + ( Fall asleep ) + (jump_to fall_asleep) + ) +) + +(require get_a_refill.fate) +(require falling_asleep.fate) + +(end) +{{< /fatecode >}} diff --git a/content/learn/07.structures/default.md b/content/learn/07.structures/default.md index a87af08..8e2dede 100644 --- a/content/learn/07.structures/default.md +++ b/content/learn/07.structures/default.md @@ -24,41 +24,41 @@ instead of a instruction: the structure is not modified, but a copy with the modifications performed is returned. **data.fate:** - - (fate_version 1) - - (declare_structure weapon - (text name) - (int attack) - (int precision) - ) - - (declare_structure armor - (text name) - (int defense) - ) - - (declare_structure character - (string name) - (int money) - (weapon weapon) - (armor armor) - ) - - (global character hero) - - (set_fields! hero.weapon - (name (text "Legendary" sword)) - (attack 3) - (precision 50) - ) - - (set_fields! hero.armor - (name (text "Refined" attire)) - (defense 1) - ) - - (set hero.money 42) +{{< fatecode >}}(fate_version 1) + +(declare_structure weapon + (text name) + (int attack) + (int precision) +) + +(declare_structure armor + (text name) + (int defense) +) + +(declare_structure character + (string name) + (int money) + (weapon weapon) + (armor armor) +) + +(global character hero) + +(set_fields! hero.weapon + (name (text "Legendary" sword)) + (attack 3) + (precision 50) +) + +(set_fields! hero.armor + (name (text "Refined" attire)) + (defense 1) +) + +(set hero.money 42) +{{< /fatecode >}} * `(text "Refined" attire)` generates a `text` value containing a textual representation of the values passed as parameter. `"Refined" attire` is, by @@ -76,126 +76,124 @@ collection is available at the smithy](/learn/collections). ## (Mostly) Unchanged Files **get_a_refill.fate:** - - (fate_version 1) - - (require data.fate) - (require actions.fate) - - (define_sequence lower_price_of_booze - ( - ((ptr int) price_pointer) - (int decrease) - ) - Great! The price of booze just lowered from (at price_pointer) - (set (at price_pointer) - (- - (at price_pointer) - (var decrease) - ) - ) - to (at price_pointer)! - ) - - (define_sequence get_a_refill () - (local int price_of_booze) - - (set price_of_booze 12) - - Staring straight at the barman, you raise your glass and proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the beer - being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (visit pay (var price_of_booze)) - (newline) - The barman sighs, then asks: - (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) - (var hero.name)? - (newline) - The barman looks surprised. - (newline) - (visit lower_price_of_booze (ptr price_of_booze) 4) - (newline) - "I have heard of you, (var hero.name)," the barman exclaims, "I have - a quest for you!" - (newline) - It's your turn to sigh. - (newline) - The barman hands you a bag, and says: - (newline) - "Take this pre-payment and head to the smithy." - (newline) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) +(require actions.fate) + +(define_sequence lower_price_of_booze + ( + ((ptr int) price_pointer) + (int decrease) + ) + Great! The price of booze just lowered from (at price_pointer) + (set (at price_pointer) + (- + (at price_pointer) + (var decrease) + ) + ) + to (at price_pointer)! +) + +(define_sequence get_a_refill () + (local int price_of_booze) + + (set price_of_booze 12) + + Staring straight at the barman, you raise your glass and proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the beer being + poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (visit pay (var price_of_booze)) + (newline) + The barman sighs, then asks: + (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) + (var hero.name)? + (newline) + The barman looks surprised. + (newline) + (visit lower_price_of_booze (ptr price_of_booze) 4) + (newline) + "I have heard of you, (var hero.name)," the barman exclaims, "I have a quest + for you!" + (newline) + It's your turn to sigh. + (newline) + The barman hands you a bag, and says: + (newline) + "Take this pre-payment and head to the smithy." + (newline) +) +{{< /fatecode >}} **actions.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) +(require data.fate) - (require data.fate) - - (define_sequence pay ( (int cost) ) - (set hero_money - (- (var hero.money) (var cost)) - ) - ) +(define_sequence pay ( (int cost) ) + (set hero_money + (- (var hero.money) (var cost)) + ) +) +{{< /fatecode >}} **falling_asleep.fate:** - (fate_version 1) - - (require data.fate) - - (define_sequence fall_asleep () - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that someone - stole all your money. - (set hero.money 0) - (newline) - This set-back was more than you could take. You give up on this - barely coherent story. - (end) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(define_sequence fall_asleep () + Deciding to break away from the expected storyline, you promptly fall + asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that someone stole all + your money. + (set hero.money 0) + (newline) + This set-back was more than you could take. You give up on this barely + coherent story. + (end) +) +{{< /fatecode >}} **main.fate:** - - (fate_version 1) - - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. - - (player_choice - ( - ( Ask the barman for a refill ) - (visit get_a_refill) - ) - ( - ( Fall asleep ) - (jump_to fall_asleep) - ) - ) - - (require get_a_refill.fate) - (require falling_asleep.fate) - - (end) +{{< fatecode >}}(fate_version 1) + +Once upon a time, starting a story with these words wasn't considered a cliche. +Starting in a tavern might also not be seen as very original. Having the main +character be an street orphan, raised by some mysterious sage all to end up as +a mercenary with an uncommonly strong sense of honor probably isn't going to +lead to any praises for novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second either. +Drinking to forget that you are a stereotypical hero isn't going to solve +anything. Worse, the alcoholic trait is part of the image. +(newline) +As you contemplate your own pointless description, your gaze leaves what turns +out to be an already empty glass in your hand and finds the barman. + +(player_choice + ( + ( Ask the barman for a refill ) + (visit get_a_refill) + ) + ( + ( Fall asleep ) + (jump_to fall_asleep) + ) +) + +(require get_a_refill.fate) +(require falling_asleep.fate) + +(end) +{{< /fatecode >}} diff --git a/content/learn/08.collections/default.md b/content/learn/08.collections/default.md index b4bae98..34310f3 100644 --- a/content/learn/08.collections/default.md +++ b/content/learn/08.collections/default.md @@ -20,56 +20,57 @@ There are [quite a few computations](/fate_v1/computations/collections) and collections. Let's add a new file, `smithy_inventory.fate`: - (fate_version 1) - - (require data.fate) - - (global (list (cons weapon int)) smithy_weapons) - (global (list (cons weapon int)) smithy_armors) - - (add! - (cons - (set_fields (default weapon) - (name (text An Iron Rod)) - (attack 10) - (precision 70) - ) - 176 - ) - smithy_weapons - ) - (add! - (cons - (set_fields (default weapon) - (name (text A Magnificient Brick)) - (attack 6) - (precision 90) - ) - 110 - ) - smithy_weapons - ) - - (add! - (cons - (set_fields (default armor) - (name (text A raincoat?!)) - (defense 7) - ) - 160 - ) - smithy_armors - ) - (add! - (cons - (set_fields (default armor) - (name (text A nice cape)) - (defense 3) - ) - 50 - ) - smithy_armors - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(global (list (cons weapon int)) smithy_weapons) +(global (list (cons weapon int)) smithy_armors) + +(add! + (cons + (set_fields (default weapon) + (name (text An Iron Rod)) + (attack 10) + (precision 70) + ) + 176 + ) + smithy_weapons +) +(add! + (cons + (set_fields (default weapon) + (name (text A Magnificient Brick)) + (attack 6) + (precision 90) + ) + 110 + ) + smithy_weapons +) + +(add! + (cons + (set_fields (default armor) + (name (text A raincoat?!)) + (defense 7) + ) + 160 + ) + smithy_armors +) +(add! + (cons + (set_fields (default armor) + (name (text A nice cape)) + (defense 3) + ) + 50 + ) + smithy_armors +) +{{< /fatecode >}} We'll also need the actual smithy scene, so let's put in another file, `smithy.fate`. @@ -78,155 +79,155 @@ We'll also need the actual smithy scene, so let's put in another file, going to introduce a lot of things to make it *much*, *much* easier to write. **smithy.fate:** - - (fate_version 1) - - (require smithy_inventory.fate) - - (define_sequence visit_smithy () - ;; This thing is going to show up every time, which isn't great. - As you approach the smithy, you notice that no one's there. All the - wares are out for selling. It's almost as if this story didn't need - more examples of lengthy dialogues. - (newline) - ;; We'll want to start here the next time we enter this sequence. - You have (var hero.money) coins. - (newline) - What will you look at? - (player_choice - ( - ( Let's see the weapons ) - (jump_to see_weapons) - ) - ( - ( Let's see the armors ) - (jump_to see_armors) - ) - ( - ( Nothing, let's go back to the bar ) - ) - ) - ) - - (define_sequence see_weapons () - ;; We'll soon replace this mess with something way better. - - (local text weapon_a_label) - (local text weapon_b_label) - - (visit get_weapon_label - (access smithy_weapons 0) - (ptr weapon_a_label) - ) - (visit get_weapon_label - (access smithy_weapons 1) - (ptr weapon_b_label) - ) - - (player_choice - ( - ( (var weapon_a_label) ) - (visit buy_weapon (access smithy_weapons 0)) - (jump_to visit_smithy) - ) - ( - ( (var weapon_a_label) ) - (visit buy_weapon (access smithy_weapons 1)) - (jump_to visit_smithy) - ) - ( - ( Nevermind ) - (jump_to visit_smithy) - ) - ) - ) - - (define_sequence see_armors () - ;; We'll soon replace this mess with something way better. - - (local text armor_a_label) - (local text armor_b_label) - - (visit get_armor_label - (access smithy_armors 0) - (ptr armor_a_label) - ) - (visit get_armor_label - (access smithy_armors 1) - (ptr armor_b_label) - ) - - (player_choice - ( - ( (var armor_a_label) ) - (visit buy_armor (access smithy_armors 0)) - (jump_to visit_smithy) - ) - ( - ( (var armor_a_label) ) - (visit buy_armor (access smithy_armors 1)) - (jump_to visit_smithy) - ) - ( - ( Nevermind ) - (jump_to visit_smithy) - ) - ) - ) - - ;; A terrible way to get labels - (define_sequence get_weapon_label - ( - ((cons weapon int) weapon_offer) - ((ptr text) label) - ) - (local weapon weapon) - (local int price) - - (set weapon (car weapon_offer)) - (set price (cdr weapon_offer)) - - (set (at label) - ( - Buy "(var weapon.name)" \(attack: (var weapon.attack), - precision: (var weapon.precision)\) for (var price) coins. - ) - ) - ) - - ;; A terrible way to get labels - (define_sequence get_armor_label - ( - ((cons armor int) armor_offer) - ((ptr text) label) - ) - (local armor armor) - (local int price) - - (set armor (car armor_offer)) - (set price (cdr armor_offer)) - - (set (at label) - ( - Buy "(var armor.name)" \(defense: (var armor.defense)\), - for (var price) coins. - ) - ) - ) - - (define_sequence buy_weapon ( ((cons weapon int) weapon) ) - ;; We can't even deny a sell yet... - (set hero.weapon (car weapon)) - Equipped (var hero.weapon.name). - (newline) - ) - - (define_sequence buy_armor ( ((cons armor int) armor) ) - ;; We can't even deny a sell yet... - (set hero.armor (car armor)) - Equipped (var hero.armor.name). - (newline) - ) +{{< fatecode >}}(fate_version 1) + +(require smithy_inventory.fate) + +(define_sequence visit_smithy () + ;; This thing is going to show up every time, which isn't great. + As you approach the smithy, you notice that no one's there. All the wares + are out for selling. It's almost as if this story didn't need more examples + of lengthy dialogues. + (newline) + ;; We'll want to start here the next time we enter this sequence. + You have (var hero.money) coins. + (newline) + What will you look at? + (player_choice + ( + ( Let's see the weapons ) + (jump_to see_weapons) + ) + ( + ( Let's see the armors ) + (jump_to see_armors) + ) + ( + ( Nothing, let's go back to the bar ) + ) + ) +) + +(define_sequence see_weapons () + ;; We'll soon replace this mess with something way better. + + (local text weapon_a_label) + (local text weapon_b_label) + + (visit get_weapon_label + (access smithy_weapons 0) + (ptr weapon_a_label) + ) + (visit get_weapon_label + (access smithy_weapons 1) + (ptr weapon_b_label) + ) + + (player_choice + ( + ( (var weapon_a_label) ) + (visit buy_weapon (access smithy_weapons 0)) + (jump_to visit_smithy) + ) + ( + ( (var weapon_a_label) ) + (visit buy_weapon (access smithy_weapons 1)) + (jump_to visit_smithy) + ) + ( + ( Nevermind ) + (jump_to visit_smithy) + ) + ) +) + +(define_sequence see_armors () + ;; We'll soon replace this mess with something way better. + + (local text armor_a_label) + (local text armor_b_label) + + (visit get_armor_label + (access smithy_armors 0) + (ptr armor_a_label) + ) + (visit get_armor_label + (access smithy_armors 1) + (ptr armor_b_label) + ) + + (player_choice + ( + ( (var armor_a_label) ) + (visit buy_armor (access smithy_armors 0)) + (jump_to visit_smithy) + ) + ( + ( (var armor_a_label) ) + (visit buy_armor (access smithy_armors 1)) + (jump_to visit_smithy) + ) + ( + ( Nevermind ) + (jump_to visit_smithy) + ) + ) +) + +;; A terrible way to get labels +(define_sequence get_weapon_label + ( + ((cons weapon int) weapon_offer) + ((ptr text) label) + ) + (local weapon weapon) + (local int price) + + (set weapon (car weapon_offer)) + (set price (cdr weapon_offer)) + + (set (at label) + ( + Buy "(var weapon.name)" \(attack: (var weapon.attack), + precision: (var weapon.precision)\) for (var price) coins. + ) + ) +) + +;; A terrible way to get labels +(define_sequence get_armor_label + ( + ((cons armor int) armor_offer) + ((ptr text) label) + ) + (local armor armor) + (local int price) + + (set armor (car armor_offer)) + (set price (cdr armor_offer)) + + (set (at label) + ( + Buy "(var armor.name)" \(defense: (var armor.defense)\), + for (var price) coins. + ) + ) +) + +(define_sequence buy_weapon ( ((cons weapon int) weapon) ) + ;; We can't even deny a sell yet... + (set hero.weapon (car weapon)) + Equipped (var hero.weapon.name). + (newline) +) + +(define_sequence buy_armor ( ((cons armor int) armor) ) + ;; We can't even deny a sell yet... + (set hero.armor (car armor)) + Equipped (var hero.armor.name). + (newline) +) +{{< /fatecode >}} * `(list (cons weapon int))` indicates a list of `weapon` and `int` pairs. * `(add! something smithy_weapons)` adds `something` to the `smithy_weapons` @@ -246,163 +247,160 @@ start with the least expected one: [lambda functions](/learn/lambdas). ## Unchanged Files **data.fate:** - - (fate_version 1) - - (declare_structure weapon - (text name) - (int attack) - (int precision) - ) - - (declare_structure armor - (text name) - (int defense) - ) - - (declare_structure character - (string name) - (int money) - (weapon weapon) - (armor armor) - ) - - (global character hero) - - (set_fields! hero.weapon - (name (text "Legendary" sword)) - (attack 3) - (precision 50) - ) - - (set_fields! hero.armor - (name (text "Refined" attire)) - (defense 1) - ) - - (set hero.money 42) +{{< fatecode >}}(fate_version 1) + +(declare_structure weapon + (text name) + (int attack) + (int precision) +) + +(declare_structure armor + (text name) + (int defense) +) + +(declare_structure character + (string name) + (int money) + (weapon weapon) + (armor armor) +) + +(global character hero) + +(set_fields! hero.weapon + (name (text "Legendary" sword)) + (attack 3) + (precision 50) +) + +(set_fields! hero.armor + (name (text "Refined" attire)) + (defense 1) +) + +(set hero.money 42) +{{< /fatecode >}} **get_a_refill.fate:** - - (fate_version 1) - - (require data.fate) - (require actions.fate) - - (define_sequence lower_price_of_booze - ( - ((ptr int) price_pointer) - (int decrease) - ) - Great! The price of booze just lowered from (at price_pointer) - (set (at price_pointer) - (- - (at price_pointer) - (var decrease) - ) - ) - to (at price_pointer)! - ) - - (define_sequence get_a_refill () - (local int price_of_booze) - - (set price_of_booze 12) - - Staring straight at the barman, you raise your glass and proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the beer - being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (visit pay (var price_of_booze)) - (newline) - The barman sighs, then asks: - (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) - (var hero.name)? - (newline) - The barman looks surprised. - (newline) - (visit lower_price_of_booze (ptr price_of_booze) 4) - (newline) - "I have heard of you, (var hero.name)," the barman exclaims, "I have - a quest for you!" - (newline) - It's your turn to sigh. - (newline) - The barman hands you a bag, and says: - (newline) - "Take this pre-payment and head to the smithy." - (newline) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) +(require actions.fate) + +(define_sequence lower_price_of_booze + ( + ((ptr int) price_pointer) + (int decrease) + ) + Great! The price of booze just lowered from (at price_pointer) + (set (at price_pointer) + (- + (at price_pointer) + (var decrease) + ) + ) + to (at price_pointer)! +) + +(define_sequence get_a_refill () + (local int price_of_booze) + + (set price_of_booze 12) + + Staring straight at the barman, you raise your glass and proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the beer being + poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (visit pay (var price_of_booze)) + (newline) + The barman sighs, then asks: + (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) + (var hero.name)? + (newline) + The barman looks surprised. + (newline) + (visit lower_price_of_booze (ptr price_of_booze) 4) + (newline) + "I have heard of you, (var hero.name)," the barman exclaims, "I have a quest + for you!" + (newline) + It's your turn to sigh. + (newline) + The barman hands you a bag, and says: + (newline) + "Take this pre-payment and head to the smithy." + (newline) +) +{{< /fatecode >}} **actions.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) +(require data.fate) - (require data.fate) - - (define_sequence pay ( (int cost) ) - (set hero_money - (- (var hero.money) (var cost)) - ) - ) +(define_sequence pay ( (int cost) ) + (set hero_money + (- (var hero.money) (var cost)) + ) +) +{{< /fatecode >}} **falling_asleep.fate:** - - (fate_version 1) - - (require data.fate) - - (define_sequence fall_asleep () - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that someone - stole all your money. - (set hero.money 0) - (newline) - This set-back was more than you could take. You give up on this - barely coherent story. - (end) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(define_sequence fall_asleep () + Deciding to break away from the expected storyline, you promptly fall + asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that someone stole all + your money. + (set hero.money 0) + (newline) + This set-back was more than you could take. You give up on this barely + coherent story. + (end) +) +{{< /fatecode >}} **main.fate:** - - (fate_version 1) - - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. - - (player_choice - ( - ( Ask the barman for a refill ) - (visit get_a_refill) - ) - ( - ( Fall asleep ) - (jump_to fall_asleep) - ) - ) - - (require get_a_refill.fate) - (require falling_asleep.fate) - - (end) +{{< fatecode >}}(fate_version 1) + +Once upon a time, starting a story with these words wasn't considered a cliche. +Starting in a tavern might also not be seen as very original. Having the main +character be an street orphan, raised by some mysterious sage all to end up as +a mercenary with an uncommonly strong sense of honor probably isn't going to +lead to any praises for novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second either. +Drinking to forget that you are a stereotypical hero isn't going to solve +anything. Worse, the alcoholic trait is part of the image. +(newline) +As you contemplate your own pointless description, your gaze leaves what turns +out to be an already empty glass in your hand and finds the barman. + +(player_choice + ( + ( Ask the barman for a refill ) + (visit get_a_refill) + ) + ( + ( Fall asleep ) + (jump_to fall_asleep) + ) +) + +(require get_a_refill.fate) +(require falling_asleep.fate) + +(end) +{{< /fatecode >}} diff --git a/content/learn/09.lambdas/default.md b/content/learn/09.lambdas/default.md index a2e6c24..91d5660 100644 --- a/content/learn/09.lambdas/default.md +++ b/content/learn/09.lambdas/default.md @@ -13,124 +13,124 @@ It can also take parameters. Since it's a computation, it cannot alter the memory by itself, nor can it contain any instructions. **smithy.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) - - (require smithy_inventory.fate) - - (global (lambda text ((cons weapon int))) get_weapon_offer_label) - (global (lambda text ((cons armor int))) get_armor_offer_label) - - (set get_weapon_offer_label - (lambda - ( ((cons weapon int) offer) ) - (let - ( - (weapon (car offer)) - (price (cdr offer)) - ) - (text - Buy "(var weapon.name)" \(attack: (var weapon.attack), - precision: (var weapon.precision)\) for (var price) coins. - ) - ) - ) - ) +(require smithy_inventory.fate) - (set get_armor_offer_label - (lambda - ( ((cons armor int) offer) ) - (let - ( - (armor (car offer)) - (price (cdr offer)) - ) - (text - Buy "(var armor.name)" \(defense: (var armor.defense)\), - for (var price) coins. - ) - ) - ) - ) +(global (lambda text ((cons weapon int))) get_weapon_offer_label) +(global (lambda text ((cons armor int))) get_armor_offer_label) - (define_sequence visit_smithy () - ;; This thing is going to show up every time, which isn't great. - As you approach the smithy, you notice that no one's there. All the - wares are out for selling. It's almost as if this story didn't need - more examples of lengthy dialogues. - (newline) - ;; We'll want to start here the next time we enter this sequence. - You have (var hero.money) coins. - (newline) - What will you look at? - (player_choice - ( - ( Let's see the weapons ) - (jump_to see_weapons) - ) - ( - ( Let's see the armors ) - (jump_to see_armors) - ) - ( - ( Nothing, let's go back to the bar ) - ) - ) +(set get_weapon_offer_label + (lambda + ( ((cons weapon int) offer) ) + (let + ( + (weapon (car offer)) + (price (cdr offer)) ) - - (define_sequence see_weapons () - ;; Still can be improved. - (player_choice - ( - ( (eval get_weapon_offer_label (access smithy_weapons 0)) ) - (visit buy_weapon (access smithy_weapons 0)) - (jump_to visit_smithy) - ) - ( - ( (eval get_weapon_offer_label (access smithy_weapons 1)) ) - (visit buy_weapon (access smithy_weapons 1)) - (jump_to visit_smithy) - ) - ( - ( Nevermind ) - (jump_to visit_smithy) - ) - ) - ) - - (define_sequence see_armors () - ;; Still can be improved. - (player_choice - ( - ( (eval get_armor_offer_label (access smithy_armors 0)) ) - (visit buy_armor (access smithy_armors 0)) - (jump_to visit_smithy) - ) - ( - ( (eval get_armor_offer_label (access smithy_armors 1)) ) - (visit buy_armor (access smithy_armors 1)) - (jump_to visit_smithy) - ) - ( - ( Nevermind ) - (jump_to visit_smithy) - ) - ) + (text + Buy "(var weapon.name)" \(attack: (var weapon.attack), + precision: (var weapon.precision)\) for (var price) coins. ) - - (define_sequence buy_weapon ( ((cons weapon int) weapon) ) - ;; We can't even deny a sell yet... - (set hero.weapon (car weapon)) - Equipped (var hero.weapon.name). - (newline) + ) + ) +) + +(set get_armor_offer_label + (lambda + ( ((cons armor int) offer) ) + (let + ( + (armor (car offer)) + (price (cdr offer)) ) - - (define_sequence buy_armor ( ((cons armor int) armor) ) - ;; We can't even deny a sell yet... - (set hero.armor (car armor)) - Equipped (var hero.armor.name). - (newline) + (text + Buy "(var armor.name)" \(defense: (var armor.defense)\), + for (var price) coins. ) + ) + ) +) + +(define_sequence visit_smithy () + ;; This thing is going to show up every time, which isn't great. + As you approach the smithy, you notice that no one's there. All the wares + are out for selling. It's almost as if this story didn't need more examples + of lengthy dialogues. + (newline) + ;; We'll want to start here the next time we enter this sequence. + You have (var hero.money) coins. + (newline) + What will you look at? + (player_choice + ( + ( Let's see the weapons ) + (jump_to see_weapons) + ) + ( + ( Let's see the armors ) + (jump_to see_armors) + ) + ( + ( Nothing, let's go back to the bar ) + ) + ) +) + +(define_sequence see_weapons () + ;; Still can be improved. + (player_choice + ( + ( (eval get_weapon_offer_label (access smithy_weapons 0)) ) + (visit buy_weapon (access smithy_weapons 0)) + (jump_to visit_smithy) + ) + ( + ( (eval get_weapon_offer_label (access smithy_weapons 1)) ) + (visit buy_weapon (access smithy_weapons 1)) + (jump_to visit_smithy) + ) + ( + ( Nevermind ) + (jump_to visit_smithy) + ) + ) +) + +(define_sequence see_armors () + ;; Still can be improved. + (player_choice + ( + ( (eval get_armor_offer_label (access smithy_armors 0)) ) + (visit buy_armor (access smithy_armors 0)) + (jump_to visit_smithy) + ) + ( + ( (eval get_armor_offer_label (access smithy_armors 1)) ) + (visit buy_armor (access smithy_armors 1)) + (jump_to visit_smithy) + ) + ( + ( Nevermind ) + (jump_to visit_smithy) + ) + ) +) + +(define_sequence buy_weapon ( ((cons weapon int) weapon) ) + ;; We can't even deny a sell yet... + (set hero.weapon (car weapon)) + Equipped (var hero.weapon.name). + (newline) +) + +(define_sequence buy_armor ( ((cons armor int) armor) ) + ;; We can't even deny a sell yet... + (set hero.armor (car armor)) + Equipped (var hero.armor.name). + (newline) +) +{{< /fatecode >}} * `(lambda return_type (param_type0 param_type1 ...))` is the type corresponding to a lambda function returning a value of type `return_type` and taking as @@ -152,215 +152,213 @@ This was a first step toward cleaning up `smithy.fate`. Next, we'll use ## Unchanged Files **data.fate:** - - (fate_version 1) - - (declare_structure weapon - (text name) - (int attack) - (int precision) - ) - - (declare_structure armor - (text name) - (int defense) - ) - - (declare_structure character - (string name) - (int money) - (weapon weapon) - (armor armor) - ) - - (global character hero) - - (set_fields! hero.weapon - (name (text "Legendary" sword)) - (attack 3) - (precision 50) - ) - - (set_fields! hero.armor - (name (text "Refined" attire)) - (defense 1) - ) - - (set hero.money 42) +{{< fatecode >}}(fate_version 1) + +(declare_structure weapon + (text name) + (int attack) + (int precision) +) + +(declare_structure armor + (text name) + (int defense) +) + +(declare_structure character + (string name) + (int money) + (weapon weapon) + (armor armor) +) + +(global character hero) + +(set_fields! hero.weapon + (name (text "Legendary" sword)) + (attack 3) + (precision 50) +) + +(set_fields! hero.armor + (name (text "Refined" attire)) + (defense 1) +) + +(set hero.money 42) +{{< /fatecode >}} **get_a_refill.fate:** - - (fate_version 1) - - (require data.fate) - (require actions.fate) - - (define_sequence lower_price_of_booze - ( - ((ptr int) price_pointer) - (int decrease) - ) - Great! The price of booze just lowered from (at price_pointer) - (set (at price_pointer) - (- - (at price_pointer) - (var decrease) - ) - ) - to (at price_pointer)! - ) - - (define_sequence get_a_refill () - (local int price_of_booze) - - (set price_of_booze 12) - - Staring straight at the barman, you raise your glass and proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the beer - being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (visit pay (var price_of_booze)) - (newline) - The barman sighs, then asks: - (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) - (var hero.name)? - (newline) - The barman looks surprised. - (newline) - (visit lower_price_of_booze (ptr price_of_booze) 4) - (newline) - "I have heard of you, (var hero.name)," the barman exclaims, "I have - a quest for you!" - (newline) - It's your turn to sigh. - (newline) - The barman hands you a bag, and says: - (newline) - "Take this pre-payment and head to the smithy." - (newline) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) +(require actions.fate) + +(define_sequence lower_price_of_booze + ( + ((ptr int) price_pointer) + (int decrease) + ) + Great! The price of booze just lowered from (at price_pointer) + (set (at price_pointer) + (- + (at price_pointer) + (var decrease) + ) + ) + to (at price_pointer)! +) + +(define_sequence get_a_refill () + (local int price_of_booze) + + (set price_of_booze 12) + + Staring straight at the barman, you raise your glass and proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the beer being + poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (visit pay (var price_of_booze)) + (newline) + The barman sighs, then asks: + (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) + (var hero.name)? + (newline) + The barman looks surprised. + (newline) + (visit lower_price_of_booze (ptr price_of_booze) 4) + (newline) + "I have heard of you, (var hero.name)," the barman exclaims, "I have a quest + for you!" + (newline) + It's your turn to sigh. + (newline) + The barman hands you a bag, and says: + (newline) + "Take this pre-payment and head to the smithy." + (newline) +) +{{< /fatecode >}} **actions.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) +(require data.fate) - (require data.fate) - - (define_sequence pay ( (int cost) ) - (set hero_money - (- (var hero.money) (var cost)) - ) - ) +(define_sequence pay ( (int cost) ) + (set hero_money + (- (var hero.money) (var cost)) + ) +) +{{< /fatecode >}} **falling_asleep.fate:** - - (fate_version 1) - - (require data.fate) - - (define_sequence fall_asleep () - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that someone - stole all your money. - (set hero.money 0) - (newline) - This set-back was more than you could take. You give up on this - barely coherent story. - (end) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(define_sequence fall_asleep () + Deciding to break away from the expected storyline, you promptly fall + asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that someone stole all + your money. + (set hero.money 0) + (newline) + This set-back was more than you could take. You give up on this barely + coherent story. + (end) +) +{{< /fatecode >}} **main.fate:** - - (fate_version 1) - - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. - - (player_choice - ( - ( Ask the barman for a refill ) - (visit get_a_refill) - ) - ( - ( Fall asleep ) - (jump_to fall_asleep) - ) - ) - - (require get_a_refill.fate) - (require falling_asleep.fate) - - (end) +{{< fatecode >}}(fate_version 1) + +Once upon a time, starting a story with these words wasn't considered a cliche. +Starting in a tavern might also not be seen as very original. Having the main +character be an street orphan, raised by some mysterious sage all to end up as +a mercenary with an uncommonly strong sense of honor probably isn't going to +lead to any praises for novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second either. +Drinking to forget that you are a stereotypical hero isn't going to solve +anything. Worse, the alcoholic trait is part of the image. +(newline) +As you contemplate your own pointless description, your gaze leaves what turns +out to be an already empty glass in your hand and finds the barman. + +(player_choice + ( + ( Ask the barman for a refill ) + (visit get_a_refill) + ) + ( + ( Fall asleep ) + (jump_to fall_asleep) + ) +) + +(require get_a_refill.fate) +(require falling_asleep.fate) + +(end) +{{< /fatecode >}} **smithy_inventory.fate:** - (fate_version 1) - - (require data.fate) - - (global (list (cons weapon int)) smithy_weapons) - (global (list (cons weapon int)) smithy_armors) - - (add! - (cons - (set_fields (default weapon) - (name (text An Iron Rod)) - (attack 10) - (precision 70) - ) - 176 - ) - smithy_weapons - ) - (add! - (cons - (set_fields (default weapon) - (name (text A Magnificient Brick)) - (attack 6) - (precision 90) - ) - 110 - ) - smithy_weapons - ) - - (add! - (cons - (set_fields (default armor) - (name (text A raincoat?!)) - (defense 7) - ) - 160 - ) - smithy_armors - ) - (add! - (cons - (set_fields (default armor) - (name (text A nice cape)) - (defense 3) - ) - 50 - ) - smithy_armors - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(global (list (cons weapon int)) smithy_weapons) +(global (list (cons weapon int)) smithy_armors) + +(add! + (cons + (set_fields (default weapon) + (name (text An Iron Rod)) + (attack 10) + (precision 70) + ) + 176 + ) + smithy_weapons +) +(add! + (cons + (set_fields (default weapon) + (name (text A Magnificient Brick)) + (attack 6) + (precision 90) + ) + 110 + ) + smithy_weapons +) + +(add! + (cons + (set_fields (default armor) + (name (text A raincoat?!)) + (defense 7) + ) + 160 + ) + smithy_armors +) +(add! + (cons + (set_fields (default armor) + (name (text A nice cape)) + (defense 3) + ) + 50 + ) + smithy_armors +) +{{< /fatecode >}} diff --git a/content/learn/10.conditions/default.md b/content/learn/10.conditions/default.md index 8a4f339..0b449b4 100644 --- a/content/learn/10.conditions/default.md +++ b/content/learn/10.conditions/default.md @@ -27,157 +27,157 @@ All of these can be used within a `player_choice` to control what options are available. **smithy.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) - - (require smithy_inventory.fate) - - (global (lambda text ((cons weapon int))) get_weapon_offer_label) - (global (lambda text ((cons armor int))) get_armor_offer_label) - - (set get_weapon_offer_label - (lambda - ( ((cons weapon int) offer) ) - (let - ( - (weapon (car offer)) - (price (cdr offer)) - ) - (text - Buy "(var weapon.name)" \(attack: (var weapon.attack), - precision: (var weapon.precision)\) for (var price) coins. - ) - ) - ) - ) +(require smithy_inventory.fate) - (set get_armor_offer_label - (lambda - ( ((cons armor int) offer) ) - (let - ( - (armor (car offer)) - (price (cdr offer)) - ) - (text - Buy "(var armor.name)" \(defense: (var armor.defense)\), - for (var price) coins. - ) - ) - ) - ) +(global (lambda text ((cons weapon int))) get_weapon_offer_label) +(global (lambda text ((cons armor int))) get_armor_offer_label) - (global bool has_visited_smithy) - - (set has_visited_smithy (false)) - - (define_sequence visit_smithy () - (if (not (var has_visited_smithy)) - As you approach the smithy, you notice that no one's there. All - the wares are out for selling. It's almost as if this story - didn't need more examples of lengthy dialogues. - (newline) - (set has_visited_smithy (true)) - ) - You have (var hero.money) coins. - (newline) - What will you look at? - (player_choice - ( - ( Let's see the weapons ) - (jump_to see_weapons) - ) - ( - ( Let's see the armors ) - (jump_to see_armors) - ) - ( - ( Nothing, let's go back to the bar ) - ) - ) +(set get_weapon_offer_label + (lambda + ( ((cons weapon int) offer) ) + (let + ( + (weapon (car offer)) + (price (cdr offer)) ) - - (define_sequence see_weapons () - ;; Still can be improved. - (player_choice - ( - ( (eval get_weapon_offer_label (access smithy_weapons 0)) ) - (visit buy_weapon (access smithy_weapons 0)) - (jump_to visit_smithy) - ) - ( - ( (eval get_weapon_offer_label (access smithy_weapons 1)) ) - (visit buy_weapon (access smithy_weapons 1)) - (jump_to visit_smithy) - ) - ( - ( Nevermind ) - (jump_to visit_smithy) - ) - ) + (text + Buy "(var weapon.name)" \(attack: (var weapon.attack), + precision: (var weapon.precision)\) for (var price) coins. ) - - (define_sequence see_armors () - ;; Still can be improved. - (player_choice - ( - ( (eval get_armor_offer_label (access smithy_armors 0)) ) - (visit buy_armor (access smithy_armors 0)) - (jump_to visit_smithy) - ) - ( - ( (eval get_armor_offer_label (access smithy_armors 1)) ) - (visit buy_armor (access smithy_armors 1)) - (jump_to visit_smithy) - ) - ( - ( Nevermind ) - (jump_to visit_smithy) - ) - ) + ) + ) +) + +(set get_armor_offer_label + (lambda + ( ((cons armor int) offer) ) + (let + ( + (armor (car offer)) + (price (cdr offer)) ) - - (define_sequence buy_weapon ( ((cons weapon int) weapon) ) - ;; We can't even deny a sell yet... - (local int money_after) - - (set money_after (- (var hero.money) (cdr weapon))) - - (if_else (< (var money_after) 0) - ( - You can't afford that. - (newline) - You would need (abs (var money_after)) more coins. - ) - ( - (set hero.weapon (car weapon)) - (set hero.money (var money_after)) - Equipped (var hero.weapon.name). - ) - ) - (newline) - ) - - (define_sequence buy_armor ( ((cons armor int) armor) ) - ;; We can't even deny a sell yet... - (local int money_after) - - (set money_after (- (var hero.money) (cdr armor))) - - (if_else (< (var money_after) 0) - ( - You can't afford that. - (newline) - You would need (abs (var money_after)) more coins. - ) - ( - (set hero.armor (car armor)) - (set hero.money (var money_after)) - Equipped (var hero.armor.name). - ) - ) - (newline) + (text + Buy "(var armor.name)" \(defense: (var armor.defense)\), + for (var price) coins. ) + ) + ) +) + +(global bool has_visited_smithy) + +(set has_visited_smithy (false)) + +(define_sequence visit_smithy () + (if (not (var has_visited_smithy)) + As you approach the smithy, you notice that no one's there. All the wares + are out for selling. It's almost as if this story didn't need more + examples of lengthy dialogues. + (newline) + (set has_visited_smithy (true)) + ) + You have (var hero.money) coins. + (newline) + What will you look at? + (player_choice + ( + ( Let's see the weapons ) + (jump_to see_weapons) + ) + ( + ( Let's see the armors ) + (jump_to see_armors) + ) + ( + ( Nothing, let's go back to the bar ) + ) + ) +) + +(define_sequence see_weapons () + ;; Still can be improved. + (player_choice + ( + ( (eval get_weapon_offer_label (access smithy_weapons 0)) ) + (visit buy_weapon (access smithy_weapons 0)) + (jump_to visit_smithy) + ) + ( + ( (eval get_weapon_offer_label (access smithy_weapons 1)) ) + (visit buy_weapon (access smithy_weapons 1)) + (jump_to visit_smithy) + ) + ( + ( Nevermind ) + (jump_to visit_smithy) + ) + ) +) + +(define_sequence see_armors () + ;; Still can be improved. + (player_choice + ( + ( (eval get_armor_offer_label (access smithy_armors 0)) ) + (visit buy_armor (access smithy_armors 0)) + (jump_to visit_smithy) + ) + ( + ( (eval get_armor_offer_label (access smithy_armors 1)) ) + (visit buy_armor (access smithy_armors 1)) + (jump_to visit_smithy) + ) + ( + ( Nevermind ) + (jump_to visit_smithy) + ) + ) +) + +(define_sequence buy_weapon ( ((cons weapon int) weapon) ) + ;; We can't even deny a sell yet... + (local int money_after) + + (set money_after (- (var hero.money) (cdr weapon))) + + (if_else (< (var money_after) 0) + ( + You can't afford that. + (newline) + You would need (abs (var money_after)) more coins. + ) + ( + (set hero.weapon (car weapon)) + (set hero.money (var money_after)) + Equipped (var hero.weapon.name). + ) + ) + (newline) +) + +(define_sequence buy_armor ( ((cons armor int) armor) ) + ;; We can't even deny a sell yet... + (local int money_after) + + (set money_after (- (var hero.money) (cdr armor))) + + (if_else (< (var money_after) 0) + ( + You can't afford that. + (newline) + You would need (abs (var money_after)) more coins. + ) + ( + (set hero.armor (car armor)) + (set hero.money (var money_after)) + Equipped (var hero.armor.name). + ) + ) + (newline) +) +{{< /fatecode >}} This was a first step toward cleaning up `smithy.fate`. Next, we'll use @@ -188,215 +188,213 @@ This was a first step toward cleaning up `smithy.fate`. Next, we'll use ## Unchanged Files **data.fate:** - - (fate_version 1) - - (declare_structure weapon - (text name) - (int attack) - (int precision) - ) - - (declare_structure armor - (text name) - (int defense) - ) - - (declare_structure character - (string name) - (int money) - (weapon weapon) - (armor armor) - ) - - (global character hero) - - (set_fields! hero.weapon - (name (text "Legendary" sword)) - (attack 3) - (precision 50) - ) - - (set_fields! hero.armor - (name (text "Refined" attire)) - (defense 1) - ) - - (set hero.money 42) +{{< fatecode >}}(fate_version 1) + +(declare_structure weapon + (text name) + (int attack) + (int precision) +) + +(declare_structure armor + (text name) + (int defense) +) + +(declare_structure character + (string name) + (int money) + (weapon weapon) + (armor armor) +) + +(global character hero) + +(set_fields! hero.weapon + (name (text "Legendary" sword)) + (attack 3) + (precision 50) +) + +(set_fields! hero.armor + (name (text "Refined" attire)) + (defense 1) +) + +(set hero.money 42) +{{< /fatecode >}} **get_a_refill.fate:** - - (fate_version 1) - - (require data.fate) - (require actions.fate) - - (define_sequence lower_price_of_booze - ( - ((ptr int) price_pointer) - (int decrease) - ) - Great! The price of booze just lowered from (at price_pointer) - (set (at price_pointer) - (- - (at price_pointer) - (var decrease) - ) - ) - to (at price_pointer)! - ) - - (define_sequence get_a_refill () - (local int price_of_booze) - - (set price_of_booze 12) - - Staring straight at the barman, you raise your glass and proclaim: - (newline) - "This soon-to-be world savior needs more booze!" - (newline) - The barman's lack of reaction is disappointing, but seeing the beer - being poured does help improve the mood. - (newline) - Satisfied, you hand the barman (var price_of_booze) copper coins. - (visit pay (var price_of_booze)) - (newline) - The barman sighs, then asks: - (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) - (var hero.name)? - (newline) - The barman looks surprised. - (newline) - (visit lower_price_of_booze (ptr price_of_booze) 4) - (newline) - "I have heard of you, (var hero.name)," the barman exclaims, "I have - a quest for you!" - (newline) - It's your turn to sigh. - (newline) - The barman hands you a bag, and says: - (newline) - "Take this pre-payment and head to the smithy." - (newline) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) +(require actions.fate) + +(define_sequence lower_price_of_booze + ( + ((ptr int) price_pointer) + (int decrease) + ) + Great! The price of booze just lowered from (at price_pointer) + (set (at price_pointer) + (- + (at price_pointer) + (var decrease) + ) + ) + to (at price_pointer)! +) + +(define_sequence get_a_refill () + (local int price_of_booze) + + (set price_of_booze 12) + + Staring straight at the barman, you raise your glass and proclaim: + (newline) + "This soon-to-be world savior needs more booze!" + (newline) + The barman's lack of reaction is disappointing, but seeing the beer being + poured does help improve the mood. + (newline) + Satisfied, you hand the barman (var price_of_booze) copper coins. + (visit pay (var price_of_booze)) + (newline) + The barman sighs, then asks: + (prompt_string (ptr hero.name) 2 64 What is your name, then, hero?) + (var hero.name)? + (newline) + The barman looks surprised. + (newline) + (visit lower_price_of_booze (ptr price_of_booze) 4) + (newline) + "I have heard of you, (var hero.name)," the barman exclaims, "I have a quest + for you!" + (newline) + It's your turn to sigh. + (newline) + The barman hands you a bag, and says: + (newline) + "Take this pre-payment and head to the smithy." + (newline) +) +{{< /fatecode >}} **actions.fate:** +{{< fatecode >}}(fate_version 1) - (fate_version 1) +(require data.fate) - (require data.fate) - - (define_sequence pay ( (int cost) ) - (set hero_money - (- (var hero.money) (var cost)) - ) - ) +(define_sequence pay ( (int cost) ) + (set hero_money + (- (var hero.money) (var cost)) + ) +) +{{< /fatecode >}} **falling_asleep.fate:** - - (fate_version 1) - - (require data.fate) - - (define_sequence fall_asleep () - Deciding to break away from the expected storyline, you promptly - fall asleep. - (newline) - ... - (newline) - Upon waking up, your hard-trained reflexes inform you that someone - stole all your money. - (set hero.money 0) - (newline) - This set-back was more than you could take. You give up on this - barely coherent story. - (end) - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(define_sequence fall_asleep () + Deciding to break away from the expected storyline, you promptly fall + asleep. + (newline) + ... + (newline) + Upon waking up, your hard-trained reflexes inform you that someone stole all + your money. + (set hero.money 0) + (newline) + This set-back was more than you could take. You give up on this barely + coherent story. + (end) +) +{{< /fatecode >}} **main.fate:** - - (fate_version 1) - - Once upon a time, starting a story with these words wasn't considered - a cliche. Starting in a tavern might also not be seen as very - original. Having the main character be an street orphan, raised by - some mysterious sage all to end up as a mercenary with an uncommonly - strong sense of honor probably isn't going to lead to any praises for - novelty either. Maybe you should drink to that. - (newline) - Or maybe you shouldn't. This isn't your first mug. Not your second - either. Drinking to forget that you are a stereotypical hero isn't - going to solve anything. Worse, the alcoholic trait is part of the - image. - (newline) - As you contemplate your own pointless description, your gaze leaves - what turns out to be an already empty glass in your hand and finds the - barman. - - (player_choice - ( - ( Ask the barman for a refill ) - (visit get_a_refill) - ) - ( - ( Fall asleep ) - (jump_to fall_asleep) - ) - ) - - (require get_a_refill.fate) - (require falling_asleep.fate) - - (end) +{{< fatecode >}}(fate_version 1) + +Once upon a time, starting a story with these words wasn't considered a cliche. +Starting in a tavern might also not be seen as very original. Having the main +character be an street orphan, raised by some mysterious sage all to end up as +a mercenary with an uncommonly strong sense of honor probably isn't going to +lead to any praises for novelty either. Maybe you should drink to that. +(newline) +Or maybe you shouldn't. This isn't your first mug. Not your second either. +Drinking to forget that you are a stereotypical hero isn't going to solve +anything. Worse, the alcoholic trait is part of the image. +(newline) +As you contemplate your own pointless description, your gaze leaves what turns +out to be an already empty glass in your hand and finds the barman. + +(player_choice + ( + ( Ask the barman for a refill ) + (visit get_a_refill) + ) + ( + ( Fall asleep ) + (jump_to fall_asleep) + ) +) + +(require get_a_refill.fate) +(require falling_asleep.fate) + +(end) +{{< /fatecode >}} **smithy_inventory.fate:** - (fate_version 1) - - (require data.fate) - - (global (list (cons weapon int)) smithy_weapons) - (global (list (cons weapon int)) smithy_armors) - - (add! - (cons - (set_fields (default weapon) - (name (text An Iron Rod)) - (attack 10) - (precision 70) - ) - 176 - ) - smithy_weapons - ) - (add! - (cons - (set_fields (default weapon) - (name (text A Magnificient Brick)) - (attack 6) - (precision 90) - ) - 110 - ) - smithy_weapons - ) - - (add! - (cons - (set_fields (default armor) - (name (text A raincoat?!)) - (defense 7) - ) - 160 - ) - smithy_armors - ) - (add! - (cons - (set_fields (default armor) - (name (text A nice cape)) - (defense 3) - ) - 50 - ) - smithy_armors - ) +{{< fatecode >}}(fate_version 1) + +(require data.fate) + +(global (list (cons weapon int)) smithy_weapons) +(global (list (cons weapon int)) smithy_armors) + +(add! + (cons + (set_fields (default weapon) + (name (text An Iron Rod)) + (attack 10) + (precision 70) + ) + 176 + ) + smithy_weapons +) +(add! + (cons + (set_fields (default weapon) + (name (text A Magnificient Brick)) + (attack 6) + (precision 90) + ) + 110 + ) + smithy_weapons +) + +(add! + (cons + (set_fields (default armor) + (name (text A raincoat?!)) + (defense 7) + ) + 160 + ) + smithy_armors +) +(add! + (cons + (set_fields (default armor) + (name (text A nice cape)) + (defense 3) + ) + 50 + ) + smithy_armors +) +{{< /fatecode >}} diff --git a/content/learn/_index.md b/content/learn/_index.md index 62706fc..2cc816c 100644 --- a/content/learn/_index.md +++ b/content/learn/_index.md @@ -2,6 +2,7 @@ title: "Starting" menuTitle: "Learn" chapter: true +weight: 2 --- # Writing a story in Fate. This chapter provides an example of narrative written in Fate. Concepts are diff --git a/content/made_with_tonkadur/_index.md b/content/made_with_tonkadur/_index.md index 4e1a654..dee5dee 100644 --- a/content/made_with_tonkadur/_index.md +++ b/content/made_with_tonkadur/_index.md @@ -1,3 +1,4 @@ --- title: Made with Tonkadur +weight: 5 --- diff --git a/content/setup/_index.md b/content/setup/_index.md index 1aad3fc..a9cb42c 100644 --- a/content/setup/_index.md +++ b/content/setup/_index.md @@ -1,7 +1,8 @@ --- -title: "Setup" +menuTitle: "Setup" +title: "Setting Up Tonkadur" +weight: 1 --- -# Setting Up Tonkadur There are two parts to set up: the compiler, and the interpreter. The compiler is provided and does not require any modification. The interpreter depends on the software you wish to integrate Tonkadur to. Examples of interpreters are diff --git a/content/wyrd_v1/_index.md b/content/wyrd_v1/_index.md index 4d902e2..9bc38a3 100644 --- a/content/wyrd_v1/_index.md +++ b/content/wyrd_v1/_index.md @@ -1,6 +1,7 @@ --- menuTitle: Wyrd title: Wyrd (Version 1) +weight: 4 --- Wyrd is the language in which the narrative is given to the game engine. It is purposefully kept small and simple to facilitate porting Tonkadur to a new |


