mirror of https://github.com/bjornbytes/lovr.git
Update README;
This commit is contained in:
parent
fd204c3edc
commit
62a3876353
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue