1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-02 20:43:35 +00:00
lovr/README.md

40 lines
521 B
Markdown
Raw Normal View History

2016-07-10 23:25:40 +00:00
LÖVR
2016-08-01 00:47:28 +00:00
===
2016-07-10 23:25:40 +00:00
2016-07-17 07:44:35 +00:00
LÖVR is a framework for making VR games with Lua! Inspired heavily by [LÖVE](http://love2d.org). Still under heavy development.
2016-08-01 00:47:28 +00:00
Example
---
In a directory called `myGame`, create a file called `main.lua`:
2016-08-01 00:48:08 +00:00
```lua
2016-08-01 00:47:28 +00:00
function lovr.update(dt)
2016-08-08 18:59:09 +00:00
print(lovr.headset:getPosition())
2016-08-01 00:47:28 +00:00
end
```
2016-08-01 00:52:36 +00:00
Then, start the OSVR server and run your game:
2016-08-01 00:47:28 +00:00
2016-08-01 00:48:08 +00:00
```sh
2016-08-01 00:47:28 +00:00
$ cd path/to/myGame
$ lovr .
```
Dependencies
---
- LuaJIT
2016-08-08 18:59:09 +00:00
- GLFW (3.2) and OpenGL 4
2016-08-01 00:47:28 +00:00
- assimp
- OSVR
Compiling (CMake)
---
2016-08-01 00:48:08 +00:00
```sh
2016-08-01 00:47:28 +00:00
mkdir build
cd build
cmake ..
```