| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <!DOCTYPE html>
- <html class="writer-html4" lang="en" >
- <head>
- <meta charset="utf-8" />
-
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-
- <title>boot.config reference — Crown Manual 0.45.0 documentation</title>
-
-
- <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
- <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-
-
-
-
-
- <!--[if lt IE 9]>
- <script src="_static/js/html5shiv.min.js"></script>
- <![endif]-->
-
-
- <script type="text/javascript">
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT:'./',
- VERSION:'0.45.0',
- LANGUAGE:'None',
- COLLAPSE_INDEX:false,
- FILE_SUFFIX:'.html',
- HAS_SOURCE: true,
- SOURCELINK_SUFFIX: ''
- };
- </script>
- <script type="text/javascript" src="_static/jquery.js"></script>
- <script type="text/javascript" src="_static/underscore.js"></script>
- <script type="text/javascript" src="_static/doctools.js"></script>
-
- <script type="text/javascript" src="_static/js/theme.js"></script>
-
- <link rel="copyright" title="Copyright" href="copyright.html" />
- <link rel="next" title="Command line reference" href="command_line.html" />
- <link rel="prev" title="Lua API reference" href="lua_api.html" />
- </head>
- <body class="wy-body-for-nav">
-
- <div class="wy-grid-for-nav">
-
- <nav data-toggle="wy-nav-shift" class="wy-nav-side">
- <div class="wy-side-scroll">
- <div class="wy-side-nav-search" >
-
-
- <a href="index.html">
-
-
-
- <img src="_static/crown-logo-white.svg" class="logo" alt="Logo"/>
-
- </a>
-
-
-
- <div class="version">
- 0.45.0
- </div>
-
-
-
- <div role="search">
- <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
- <input type="text" name="q" placeholder="Search docs" />
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- </div>
-
- </div>
-
- <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
-
-
-
-
-
-
- <ul class="current">
- <li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
- <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
- <li class="toctree-l1"><a class="reference internal" href="basics.html">Basic concepts</a></li>
- <li class="toctree-l1"><a class="reference internal" href="lua_api.html">Lua API reference</a></li>
- <li class="toctree-l1 current"><a class="current reference internal" href="">boot.config reference</a><ul>
- <li class="toctree-l2"><a class="reference internal" href="#generic-configurations">Generic configurations</a></li>
- <li class="toctree-l2"><a class="reference internal" href="#platform-specific-configurations">Platform-specific configurations</a><ul>
- <li class="toctree-l3"><a class="reference internal" href="#renderer-configurations">Renderer configurations</a></li>
- </ul>
- </li>
- </ul>
- </li>
- <li class="toctree-l1"><a class="reference internal" href="command_line.html">Command line reference</a></li>
- <li class="toctree-l1"><a class="reference internal" href="glossary.html">Glossary</a></li>
- <li class="toctree-l1"><a class="reference internal" href="copyright.html">License</a></li>
- </ul>
- <ul>
- <li class="toctree-l1"><a class="reference internal" href="hackers/index.html">Hackers</a></li>
- </ul>
-
-
- </div>
-
- </div>
- </nav>
- <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
-
- <nav class="wy-nav-top" aria-label="top navigation">
-
- <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
- <a href="index.html">Crown Manual</a>
-
- </nav>
- <div class="wy-nav-content">
-
- <div class="rst-content">
-
-
- <div role="navigation" aria-label="breadcrumbs navigation">
- <ul class="wy-breadcrumbs">
-
- <li><a href="index.html" class="icon icon-home"></a> »</li>
-
- <li>boot.config reference</li>
-
-
- <li class="wy-breadcrumbs-aside">
-
-
- <a href="_sources/boot_config.txt" rel="nofollow"> View page source</a>
-
-
- </li>
-
- </ul>
-
- <hr/>
- </div>
- <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
- <div itemprop="articleBody">
-
- <div class="section" id="boot-config-reference">
- <h1>boot.config reference<a class="headerlink" href="#boot-config-reference" title="Permalink to this headline">¶</a></h1>
- <div class="section" id="generic-configurations">
- <h2>Generic configurations<a class="headerlink" href="#generic-configurations" title="Permalink to this headline">¶</a></h2>
- <dl class="docutils">
- <dt><code class="docutils literal"><span class="pre">boot_script</span> <span class="pre">=</span> <span class="pre">"lua/game"</span></code></dt>
- <dd>Lua script to launch on boot.</dd>
- <dt><code class="docutils literal"><span class="pre">boot_package</span> <span class="pre">=</span> <span class="pre">"boot"</span></code></dt>
- <dd>Package to load on boot.</dd>
- <dt><code class="docutils literal"><span class="pre">window_title</span> <span class="pre">=</span> <span class="pre">"My</span> <span class="pre">window"</span></code></dt>
- <dd>Title of the main window on platforms that support it.</dd>
- </dl>
- </div>
- <div class="section" id="platform-specific-configurations">
- <h2>Platform-specific configurations<a class="headerlink" href="#platform-specific-configurations" title="Permalink to this headline">¶</a></h2>
- <p>All configurations for a given <em>platform</em> are placed under a key named <em>platform</em>. E.g.:</p>
- <div class="code highlight-python"><div class="highlight"><pre>// Linux-only configs
- linux = {
- renderer = {
- resolution = [ 1280 720 ]
- aspect_ratio = -1
- vsync = true
- }
- }
- </pre></div>
- </div>
- <div class="section" id="renderer-configurations">
- <h3>Renderer configurations<a class="headerlink" href="#renderer-configurations" title="Permalink to this headline">¶</a></h3>
- <dl class="docutils">
- <dt><code class="docutils literal"><span class="pre">resolution</span> <span class="pre">=</span> <span class="pre">[</span> <span class="pre">1280</span> <span class="pre">720</span> <span class="pre">]</span></code></dt>
- <dd>Sets the width and height of the main window.</dd>
- <dt><code class="docutils literal"><span class="pre">aspect_ratio</span> <span class="pre">=</span> <span class="pre">-1</span></code></dt>
- <dd>Sets the aspect ratio.
- If the value is set to <code class="docutils literal"><span class="pre">-1</span></code>, the aspect ratio is computed as <code class="docutils literal"><span class="pre">width/height</span></code> of the main window.</dd>
- <dt><code class="docutils literal"><span class="pre">vsync</span> <span class="pre">=</span> <span class="pre">true</span></code></dt>
- <dd>Sets whether to enable the vsync.</dd>
- <dt><code class="docutils literal"><span class="pre">fullscreen</span> <span class="pre">=</span> <span class="pre">false</span></code></dt>
- <dd>Sets whether to enable fullscreen.</dd>
- </dl>
- </div>
- </div>
- </div>
- </div>
-
- </div>
- <footer>
-
- <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
-
- <a href="command_line.html" class="btn btn-neutral float-right" title="Command line reference" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
-
-
- <a href="lua_api.html" class="btn btn-neutral float-left" title="Lua API reference" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
-
- </div>
-
- <hr/>
- <div role="contentinfo">
- <p>
- © <a href="copyright.html">Copyright</a> Except where otherwise noted, content on this page is licensed under a CC-BY-SA 4.0 Int. License.
- </p>
- </div>
-
-
-
- Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
-
- <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
-
- provided by <a href="https://readthedocs.org">Read the Docs</a>.
- </footer>
- </div>
- </div>
- </section>
- </div>
-
- <script type="text/javascript">
- jQuery(function () {
- SphinxRtdTheme.Navigation.enable(true);
- });
- </script>
-
-
-
-
- </body>
- </html>
|