Browse Source

Update Distribution for WebVR;

bjorn 7 years ago
parent
commit
133e8cdea2
1 changed files with 13 additions and 2 deletions
  1. 13 2
      guides/Distribution.md

+ 13 - 2
guides/Distribution.md

@@ -36,8 +36,19 @@ original LÖVR download.
 WebVR
 ---
 
-To create a custom WebVR build, see [this
-guide](https://github.com/bjornbytes/lovr/blob/master/COMPILING.md#webvr).
+To package a game for use in a browser, you can use the `file_packager` script that comes with the
+Emscripten SDK:
+
+```
+python "$EMSCRIPTEN/tools/file_packager.py" game.data --no-heap-copy --preload /path/to/game@/ --js-output=game.js
+```
+
+This will output two files: `game.js` and `game.data`.  The `game.js` file downloads the `game.data`
+contents and mounts it into the Emscripten filesystem, which LÖVR will then run at startup.
+
+For full instructions on creating a web-enabled build of LÖVR, see the [Compiling guide](Compiling#webvr).
+You can also use [lovr-webvr-server](https://github.com/bjornbytes/lovr-webvr-server) to develop a
+WebVR project locally with live-reloading support.
 
 Note that there are a few differences when running LÖVR in the browser: