mirror of
https://github.com/ganelson/inform.git
synced 2024-07-16 22:14:23 +03:00
59 lines
4.1 KiB
HTML
59 lines
4.1 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
{include-css}
|
|
<style type="text/css">
|
|
.red
|
|
\{
|
|
color:rgb(255,0,0);
|
|
\}
|
|
</style>
|
|
<title>Materials Folder</title>
|
|
</head>
|
|
<body>
|
|
<p><span class="headingpaneltext">Materials Folder</span></p>
|
|
<p>Every project has a ".materials" folder, which is always stored next to it on disc. (Use ⌘M to show the current project's .materials in the Finder.) This screenshot shows how the .materials folder would look for a project which used it in every possible way. In practice, this is very unlikely.</p>
|
|
|
|
<img src="MaterialsDiagram.png" width="275" height="403"/>
|
|
|
|
<p>Project (<span class="red">1</span>) and .materials folder (<span class="red">2</span>) live side by side in the Finder: everything else here is inside .materials (<span class="red">2</span>). The author of this story decided that it should be given to players along with a PDF booklet (<span class="red">3</span>), by including this Release instruction in the source text:
|
|
|
|
<blockquote>
|
|
Release along with a file of "A Guide to Arboreal Fauna" called "A Guide to Arboreal Fauna.pdf".
|
|
</blockquote>
|
|
|
|
<p>Every released project needs cover art. Authors have to provide two files, full-sized at 960 by 960 (<span class="red">4</span>) and reduced at 120 by 120 (<span class="red">18</span>): they can either be "Cover.jpg" and "Small Cover.jpg" or "Cover.png" and "Small Cover.png".</p>
|
|
|
|
<p>Extensions to Inform are usually centrally installed, and available to all projects. But this project has its own private copy of "Feeding Squirrels by Emily Short" (<span class="red">7</span>), in its own private Extensions folder (<span class="red">5</span>). This would override any installed copy of the same extension. It has to have the correct name and .i7x ending, and it has to live inside a folder with its author's name (<span class="red">6</span>).</p>
|
|
|
|
<p>Projects which include pictures as well as text need to store the necessary images, in JPEG or PNG format, in the Figures folder (<span class="red">8</span>). This one was declared in the source text like so:</p>
|
|
|
|
<blockquote>
|
|
Figure of Red Admiral Butterfly is the file "butterfly.jpg".
|
|
</blockquote>
|
|
|
|
<p>Sound effects are similar, use AIFF or OGG format, and live in Sounds (<span class="red">19</span>). There's one here (<span class="red">20</span>), declared by:</p>
|
|
|
|
<blockquote>
|
|
Sound of Rustling Leaves is the file "Rustling Leaves.aiff".
|
|
</blockquote>
|
|
|
|
<p>Projects which read or write files of data as they play should have a Files folder (<span class="red">10</span>) to hold these. This one (<span class="red">11</span>) was declared by:
|
|
|
|
<blockquote>
|
|
The File of Nut Storage Locations is called "nutstorage".
|
|
</blockquote>
|
|
|
|
<p>Now for some expert-only features which hardly anybody needs in practice. The I6T folder (<span class="red">12</span>) provides extra template files (<span class="red">13</span>), or indeed replacement ones (<span class="red">14</span>), and allows a project to include substantial portions of raw Inform 6 code. The Languages folder (<span class="red">16</span>) is for experimenting with language bundles, a feature still in its early stages. The Templates folder (<span class="red">21</span>) is for providing the project with a non-standard Javascript engine, called an "interpreter", when it's released as a website. Here there's an intepreter called "Experimental" (<span class="red">22</span>) which can be selected by putting this into the source:</p>
|
|
|
|
<blockquote>
|
|
Release along with the "Experimental" interpreter.
|
|
</blockquote>
|
|
|
|
<p>And that just leaves the Release folder (<span class="red">17</span>). Inform creates this automatically if the project's Release button is clicked, and then writes into it whatever will eventually go out to players. So never store anything permanent here: it's intended to be just a holding area.
|
|
</p>
|
|
<hr style="margin-top: 18px;">
|
|
</body>
|
|
</html>
|