Lua Virtual Reality Engine
Go to file
bjorn 8db1b1db06 Documentation; 2016-10-04 15:01:29 -07:00
doc Documentation; 2016-10-04 15:01:29 -07:00
src Start Model; Reorganize constructors; 2016-10-03 21:54:27 -07:00
.gitignore Separate Lua API; 2016-08-09 23:28:17 -07:00
CMakeLists.txt Improve CMakeLists.txt; 2016-10-04 14:47:48 -07:00
README.md Documentation; 2016-10-04 15:01:29 -07:00

README.md

LÖVR

LÖVR lets you make VR games with Lua!

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!

Documentation

Some basic reference documentation exists in API.md.

Supported Hardware

  • HTC Vive

Support for other hardware will happen eventually.

Compiling

See the compilation guide.