Browse Source

Update Getting Started guides;

bjorn 2 years ago
parent
commit
31325f7b75
2 changed files with 4 additions and 4 deletions
  1. 2 2
      guides/Getting_Started.md
  2. 2 2
      guides/Getting_Started_(Quest).md

+ 2 - 2
guides/Getting_Started.md

@@ -37,8 +37,8 @@ file in your project folder, LÖVR will run the code in there when the project s
 Create a file called `main.lua` in a project folder and type the following Lua code in it:
 
 ```
-function lovr.draw()
-  lovr.graphics.print('hello world', 0, 1.7, -3, .5)
+function lovr.draw(pass)
+  pass:text('hello world', 0, 1.7, -3, .5)
 end
 ```
 

+ 2 - 2
guides/Getting_Started_(Quest).md

@@ -37,8 +37,8 @@ Now we can create a LÖVR project, which is a folder with some code and assets i
 folder called `hello-world` and add this code to a file named `main.lua` in there:
 
 ```
-function lovr.draw()
-  lovr.graphics.print('hello world', 0, 1.7, -3, .5)
+function lovr.draw(pass)
+  pass:text('hello world', 0, 1.7, -3, .5)
 end
 ```