Update README;

This commit is contained in:
bjorn 2016-12-05 01:17:32 -08:00
parent fd204c3edc
commit 62a3876353
1 changed files with 2 additions and 6 deletions

View File

@ -9,17 +9,13 @@ Example
In a folder called `myGame`, create a file called `main.lua` with this in it:
```lua
function lovr.update(dt)
t = (t or 0) + dt
end
function lovr.draw(eye)
local x, y, z = 0, .25, -2
local size = 1
local angle, rx, ry, rz = t * 2, 0, 1, 0
local angle = lovr.timer.getTime()
lovr.graphics.setColor(128, 0, 255)
lovr.graphics.cube('line', x, y, z, size, angle, rx, ry, rz)
lovr.graphics.cube('line', x, y, z, size, angle)
end
```