1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-04 13:33:34 +00:00
Lua Virtual Reality Engine
Go to file
2016-10-21 19:21:16 -07:00
doc Notes about compiling gotchas; 2016-10-18 13:02:02 -07:00
src Remove warning about conf.lua; 2016-10-21 19:21:16 -07:00
.gitignore Ignore Tupfile; 2016-10-04 15:03:21 -07:00
CMakeLists.txt Notes about compiling gotchas; 2016-10-18 13:02:02 -07:00
README.md Link to documentation site; 2016-10-14 17:47:38 -07:00

LÖVR

LÖVR lets you make VR games with Lua! See http://bjornbyt.es/lovr.

Example

In a folder called myGame, create a file called main.lua with this in it:

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

  lovr.graphics.setColor(128, 0, 255)
  lovr.graphics.cube('line', x, y, z, size, angle, rx, ry, rz)
end

Drag the myGame folder onto a shortcut to lovr.exe. You should see a spinning purple cube!

Supported Hardware

  • HTC Vive

Support for other hardware will happen eventually.

Compiling

See the compilation guide.