1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-07 06:43:34 +00:00
lovr/README.md
2016-07-31 17:47:28 -07:00

52 lines
621 B
Markdown

LÖVR
===
LÖVR is a framework for making VR games with Lua! Inspired heavily by [LÖVE](http://love2d.org). Still under heavy development.
Example
---
In a directory called `myGame`, create a file called `main.lua`:
```
function lovr.load()
headset = lovr.device.getHeadset()
end
function lovr.update(dt)
print('Headset position:', headset:getPosition())
end
```
Then, run your game:
```
$ cd path/to/myGame
$ lovr .
```
Dependencies
---
- LuaJIT
- GLFW and OpenGL 4
- assimp
- OSVR
- gl-matrix
Compiling (Tupfile, OSX only)
---
```
tup
```
Compiling (CMake)
---
```
mkdir build
cd build
cmake ..
```