boot_config.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <!DOCTYPE html>
  2. <html class="writer-html4" lang="en" >
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>boot.config reference &mdash; Crown Manual 0.40.0 documentation</title>
  7. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <!--[if lt IE 9]>
  10. <script src="_static/js/html5shiv.min.js"></script>
  11. <![endif]-->
  12. <script type="text/javascript">
  13. var DOCUMENTATION_OPTIONS = {
  14. URL_ROOT:'./',
  15. VERSION:'0.40.0',
  16. LANGUAGE:'None',
  17. COLLAPSE_INDEX:false,
  18. FILE_SUFFIX:'.html',
  19. HAS_SOURCE: true,
  20. SOURCELINK_SUFFIX: ''
  21. };
  22. </script>
  23. <script type="text/javascript" src="_static/jquery.js"></script>
  24. <script type="text/javascript" src="_static/underscore.js"></script>
  25. <script type="text/javascript" src="_static/doctools.js"></script>
  26. <script type="text/javascript" src="_static/js/theme.js"></script>
  27. <link rel="copyright" title="Copyright" href="copyright.html" />
  28. <link rel="next" title="Command line reference" href="command_line.html" />
  29. <link rel="prev" title="Lua API reference" href="lua_api.html" />
  30. </head>
  31. <body class="wy-body-for-nav">
  32. <div class="wy-grid-for-nav">
  33. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  34. <div class="wy-side-scroll">
  35. <div class="wy-side-nav-search" >
  36. <a href="index.html" class="icon icon-home"> Crown Manual
  37. </a>
  38. <div class="version">
  39. 0.40.0
  40. </div>
  41. <div role="search">
  42. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  43. <input type="text" name="q" placeholder="Search docs" />
  44. <input type="hidden" name="check_keywords" value="yes" />
  45. <input type="hidden" name="area" value="default" />
  46. </form>
  47. </div>
  48. </div>
  49. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  50. <ul class="current">
  51. <li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
  52. <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
  53. <li class="toctree-l1"><a class="reference internal" href="basics.html">Basic concepts</a></li>
  54. <li class="toctree-l1"><a class="reference internal" href="lua_api.html">Lua API reference</a></li>
  55. <li class="toctree-l1 current"><a class="current reference internal" href="">boot.config reference</a><ul>
  56. <li class="toctree-l2"><a class="reference internal" href="#generic-configurations">Generic configurations</a></li>
  57. <li class="toctree-l2"><a class="reference internal" href="#platform-specific-configurations">Platform-specific configurations</a><ul>
  58. <li class="toctree-l3"><a class="reference internal" href="#renderer-configurations">Renderer configurations</a></li>
  59. </ul>
  60. </li>
  61. </ul>
  62. </li>
  63. <li class="toctree-l1"><a class="reference internal" href="command_line.html">Command line reference</a></li>
  64. <li class="toctree-l1"><a class="reference internal" href="copyright.html">License</a></li>
  65. </ul>
  66. <ul>
  67. <li class="toctree-l1"><a class="reference internal" href="hackers/index.html">Hackers</a></li>
  68. </ul>
  69. </div>
  70. </div>
  71. </nav>
  72. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  73. <nav class="wy-nav-top" aria-label="top navigation">
  74. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  75. <a href="index.html">Crown Manual</a>
  76. </nav>
  77. <div class="wy-nav-content">
  78. <div class="rst-content">
  79. <div role="navigation" aria-label="breadcrumbs navigation">
  80. <ul class="wy-breadcrumbs">
  81. <li><a href="index.html" class="icon icon-home"></a> &raquo;</li>
  82. <li>boot.config reference</li>
  83. <li class="wy-breadcrumbs-aside">
  84. <a href="_sources/boot_config.txt" rel="nofollow"> View page source</a>
  85. </li>
  86. </ul>
  87. <hr/>
  88. </div>
  89. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  90. <div itemprop="articleBody">
  91. <div class="section" id="boot-config-reference">
  92. <h1>boot.config reference<a class="headerlink" href="#boot-config-reference" title="Permalink to this headline">¶</a></h1>
  93. <div class="section" id="generic-configurations">
  94. <h2>Generic configurations<a class="headerlink" href="#generic-configurations" title="Permalink to this headline">¶</a></h2>
  95. <dl class="docutils">
  96. <dt><code class="docutils literal"><span class="pre">boot_script</span> <span class="pre">=</span> <span class="pre">&quot;lua/game&quot;</span></code></dt>
  97. <dd>Lua script to launch on boot.</dd>
  98. <dt><code class="docutils literal"><span class="pre">boot_package</span> <span class="pre">=</span> <span class="pre">&quot;boot&quot;</span></code></dt>
  99. <dd>Package to load on boot.</dd>
  100. <dt><code class="docutils literal"><span class="pre">window_title</span> <span class="pre">=</span> <span class="pre">&quot;My</span> <span class="pre">window&quot;</span></code></dt>
  101. <dd>Title of the main window on platforms that support it.</dd>
  102. </dl>
  103. </div>
  104. <div class="section" id="platform-specific-configurations">
  105. <h2>Platform-specific configurations<a class="headerlink" href="#platform-specific-configurations" title="Permalink to this headline">¶</a></h2>
  106. <p>All configurations for a given <em>platform</em> are placed under a key named <em>platform</em>. E.g.:</p>
  107. <div class="code highlight-python"><div class="highlight"><pre>// Linux-only configs
  108. linux = {
  109. renderer = {
  110. resolution = [ 1280 720 ]
  111. aspect_ratio = -1
  112. vsync = true
  113. }
  114. }
  115. </pre></div>
  116. </div>
  117. <div class="section" id="renderer-configurations">
  118. <h3>Renderer configurations<a class="headerlink" href="#renderer-configurations" title="Permalink to this headline">¶</a></h3>
  119. <dl class="docutils">
  120. <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>
  121. <dd>Sets the width and height of the main window.</dd>
  122. <dt><code class="docutils literal"><span class="pre">aspect_ratio</span> <span class="pre">=</span> <span class="pre">-1</span></code></dt>
  123. <dd>Sets the aspect ratio.
  124. 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>
  125. <dt><code class="docutils literal"><span class="pre">vsync</span> <span class="pre">=</span> <span class="pre">true</span></code></dt>
  126. <dd>Sets whether to enable the vsync.</dd>
  127. <dt><code class="docutils literal"><span class="pre">fullscreen</span> <span class="pre">=</span> <span class="pre">false</span></code></dt>
  128. <dd>Sets whether to enable fullscreen.</dd>
  129. </dl>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. <footer>
  136. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  137. <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>
  138. <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>
  139. </div>
  140. <hr/>
  141. <div role="contentinfo">
  142. <p>
  143. &#169; <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.
  144. </p>
  145. </div>
  146. Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
  147. <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
  148. provided by <a href="https://readthedocs.org">Read the Docs</a>.
  149. </footer>
  150. </div>
  151. </div>
  152. </section>
  153. </div>
  154. <script type="text/javascript">
  155. jQuery(function () {
  156. SphinxRtdTheme.Navigation.enable(true);
  157. });
  158. </script>
  159. </body>
  160. </html>