Browse Source

rm fenced codeblocks;

bjorn 2 years ago
parent
commit
059a9a0ba5
3 changed files with 19 additions and 1 deletions
  1. 1 1
      api/init.lua
  2. 8 0
      api/lovr/filesystem/init.lua
  3. 10 0
      guides/Getting_Started.md

+ 1 - 1
api/init.lua

@@ -1869,7 +1869,7 @@ return {
       description = "The `lovr.filesystem` module provides access to the filesystem.",
       description = "The `lovr.filesystem` module provides access to the filesystem.",
       key = "lovr.filesystem",
       key = "lovr.filesystem",
       enums = {},
       enums = {},
-      notes = "LÖVR programs can only write to a single directory, called the save directory.  The location of the save directory is platform-specific:\n\n<table>\n  <tr>\n    <td>Windows</td>\n    <td><code>C:\\Users\\&lt;user&gt;\\AppData\\Roaming\\LOVR\\&lt;identity&gt;</code></td>\n  </tr>\n  <tr>\n    <td>macOS</td>\n    <td><code>/Users/&lt;user&gt;/Library/Application Support/LOVR/&lt;identity&gt;</code></td>\n  </tr> </table>\n\n`<identity>` should be a unique identifier for your app.  It can be set either in `lovr.conf` or by using `lovr.filesystem.setIdentity`.\n\nAll filenames are relative to either the save directory or the directory containing the project source.  Files in the save directory take precedence over files in the project.",
+      notes = "LÖVR programs can only write to a single directory, called the save directory.  The location of the save directory is platform-specific:\n\n<table>\n  <tr>\n    <td>Windows</td>\n    <td><code>C:\\Users\\&lt;user&gt;\\AppData\\Roaming\\LOVR\\&lt;identity&gt;</code></td>\n  </tr>\n  <tr>\n    <td>macOS</td>\n    <td><code>/Users/&lt;user&gt;/Library/Application Support/LOVR/&lt;identity&gt;</code></td>\n  </tr>\n  <tr>\n    <td>Linux</td>\n    <td><code>/home/&lt;user&gt;/.local/share/LOVR/&lt;identity&gt;</code></td>\n  </tr>\n  <tr>\n    <td>Android</td>\n    <td><code>/sdcard/Android/data/&lt;identity&gt;/files</code></td>\n  </tr> </table>\n\n`<identity>` should be a unique identifier for your app.  It can be set either in `lovr.conf` or by using `lovr.filesystem.setIdentity`.\n\nAll filenames are relative to either the save directory or the directory containing the project source.  Files in the save directory take precedence over files in the project.",
       functions = {
       functions = {
         {
         {
           name = "append",
           name = "append",

+ 8 - 0
api/lovr/filesystem/init.lua

@@ -15,6 +15,14 @@ return {
         <td>macOS</td>
         <td>macOS</td>
         <td><code>/Users/&lt;user&gt;/Library/Application Support/LOVR/&lt;identity&gt;</code></td>
         <td><code>/Users/&lt;user&gt;/Library/Application Support/LOVR/&lt;identity&gt;</code></td>
       </tr>
       </tr>
+      <tr>
+        <td>Linux</td>
+        <td><code>/home/&lt;user&gt;/.local/share/LOVR/&lt;identity&gt;</code></td>
+      </tr>
+      <tr>
+        <td>Android</td>
+        <td><code>/sdcard/Android/data/&lt;identity&gt;/files</code></td>
+      </tr>
     </table>
     </table>
 
 
     `<identity>` should be a unique identifier for your app.  It can be set either in `lovr.conf` or
     `<identity>` should be a unique identifier for your app.  It can be set either in `lovr.conf` or

+ 10 - 0
guides/Getting_Started.md

@@ -40,6 +40,7 @@ details of the code right now.  *However*, I recommend that you avoid just copyi
 Typing out each line does this magical thing to your brain that helps you read, write, and
 Typing out each line does this magical thing to your brain that helps you read, write, and
 understand the code better.  I promise.
 understand the code better.  I promise.
 
 
+<<<<<<< HEAD
 ```
 ```
 function lovr.draw()
 function lovr.draw()
   lovr.graphics.cube('line', 0, 1, 0)
   lovr.graphics.cube('line', 0, 1, 0)
@@ -51,6 +52,15 @@ name it `main.lua`.  Now we're ready to run our project!
 
 
 > Note: If you're trying this out without a VR headset, use the coordinates `0, 0, -2` instead of
 > Note: If you're trying this out without a VR headset, use the coordinates `0, 0, -2` instead of
 > `0, 1, 0` so the cube shows up correctly!
 > `0, 1, 0` so the cube shows up correctly!
+=======
+    function lovr.draw()
+      lovr.graphics.print('hello world', 0, 1.7, -3, .5)
+    end
+
+Don't worry if you're confused about the code, it's not important to understand it all right now.
+In short, we declared the `lovr.draw` callback and used `Pass:text` in there to render some text in
+the world.  We'll learn more about how this works in the next guide.
+>>>>>>> afca132 (rm fenced codeblocks;)
 
 
 Running a Project
 Running a Project
 ---
 ---