lovr/README.md

48 lines
584 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-10 06:42:30 +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-10 06:45:33 +00:00
- GLFW (3.2+) and OpenGL (3.2+)
2016-08-01 00:47:28 +00:00
- assimp
- OSVR
2016-08-10 06:42:30 +00:00
Compiling
2016-08-01 00:47:28 +00:00
---
2016-08-10 06:45:33 +00:00
Windows (CMake, may be out of date):
2016-08-10 06:42:30 +00:00
2016-08-01 00:48:08 +00:00
```sh
2016-08-01 00:47:28 +00:00
mkdir build
cd build
cmake ..
```
2016-08-10 06:42:30 +00:00
2016-08-10 06:45:33 +00:00
OSX (tup):
2016-08-10 06:42:30 +00:00
```sh
tup
```