This is the build environment for RenPyWeb.
-
Install emscripten 1.38.30 and apply
patches/emscripten.patch
. You can usescripts/build_toolchain.sh
for this. -
Install Ren'Py to
renpy/
and pygame_sdl2 topygame_sdl2/
. It's also necessary to either build Ren'Py for the host computer, or copy a lib directory from a similar Ren'Py version torenpy/lib/
. This can be done for you withscripts/checkout_renpy.sh
. -
Adapt
env.sh
andsource
it. If you usedscripts/build_toolchain.sh
, thensource toolchain/env.sh
will suffice. -
Type:
make
-
Package the game using
scripts/distribute_game.sh
. This will run Ren'Py to compile and distribute the game. It takes an optional argument, a path to a Ren'Py game's base directory.
-
Firefox: double-click on
build/t/index.html
-
Firefox or Chromium:
cd build/t/ python3 -m http.server 8000 chromium http://localhost:8000/
Use asmjs.html
instead of index.html
.
ASMJS is deprecated in favor of WebAssembly. It can be used for older browsers, but it is most useful as a debugging tool because WASM sometimes fails to provide enough information.
Check the pygame-example-*
targets. Symlink pygame-example/main.py
to the variant you wish to experiment with.
Also check the native
target to try to run Ren'Py natively with some
Emscripten behavior.
make devkit