dules">Organizing modules</h2>
<p>It may help to see a real example of using modules in a game, so let&apos;s take our previous game code from <a href="pages/02-08-reading-documentation.md">2.8 - Reading documentation</a> and see how we can separate out functionality.
The first thing we did in our game was define a world, so let&apos;s start by putting our world-related code in a dedicated file named <strong>world.lua</strong>:</p>
<pre><code class="lang-lua"><span class="hljs-comment">-- world.lua</span>

