This is the build environment for RenPyWeb.
-
Install emscripten 1.38.30 and apply
patches/emscripten.patch. You can usescripts/build_toolchain.shfor this. -
Install Ren'Py to
renpy/and pygame_sdl2 topygame_sdl2/. It's also necessary
| import cPickle as pickle | |
| import marshal | |
| import time | |
| data = { } | |
| for i in range(1000000): | |
| fn = intern('fn' + str(i // 1000)) | |
| data[(fn, i // 1000, i)] = True |
| screen cap(who, what): | |
| frame: | |
| style "empty" | |
| background "#000" | |
| padding (5, 5) | |
| xalign 0.5 | |
| yalign 1.0 yoffset -30 |
| init python: | |
| class ConditionSub(object): | |
| def __init__(self, *args): | |
| self.items = [ (cond, value) for cond, value in zip(args[::2], args[1::2]) ] | |
| def __unicode__(self): | |
| for cond, value in self.items: | |
| if eval(cond): | |
| return self.value |
| screen nvl(dialogue, items=None): | |
| window: | |
| style "nvl_window" | |
| has vbox: | |
| spacing gui.nvl_spacing | |
| viewport: | |
| scrollbars "vertical" |
| imagebutton: | |
| ypos -300 | |
| xpos -0.05 | |
| idle "starspacesimple.png" | |
| imagebutton: | |
| ypos -400 | |
| xpos 0.9 | |
| idle "exit.png" | |
| action [Hide("phone_screen"),NullAction(), Return] | |
| if groupotif: |
| default persistent.alternate_textbox = False | |
| screen say(who, what): | |
| style_prefix "say" | |
| window: | |
| id "window" | |
| if persistent.alternate_textbox: | |
| background "gui/alternate_textbox.png" |
| textbutton _("Change Name") action ui.callsinnewcontext("change_name") | |
| default name = "Marty Stu" | |
| label change_name: | |
| $ name = renpy.input("What's your name?", default=name) or name | |
| return |
| configure:12443: result: no | |
| configure:12481: checking for sdl2-config | |
| configure:12499: found /home/tom/ab/renpyweb/toolchain/emscripten/system/bin/sdl2-config | |
| configure:12512: result: /home/tom/ab/renpyweb/toolchain/emscripten/system/bin/sdl2-config | |
| configure:12521: checking for SDL - version >= 2.0.0 | |
| configure:12609: /home/tom/ab/renpyweb/toolchain/emscripten/emcc -o conftest -O3 -s USE_SDL=2 -I/home/tom/ab/renpyweb/scripts/../install/include -L/home/tom/ab/ren | |
| pyweb/scripts/../install/lib conftest.c -s USE_SDL=2 >&5 | |
| system_libs:WARNING: using local ports: sdl2emterpreter=/home/tom/ab/renpyweb/build/SDL2 | |
| system_libs:WARNING: using local ports: sdl2emterpreter=/home/tom/ab/renpyweb/build/SDL2 | |
| configure:12609: $? = 0 |
This is the build environment for RenPyWeb.
Install emscripten 1.38.30 and apply
patches/emscripten.patch. You can use scripts/build_toolchain.sh for this.
Install Ren'Py to renpy/ and pygame_sdl2 to pygame_sdl2/. It's also necessary
This is the build environment for RenPyWeb.
Install emscripten 1.38.30 and apply
patches/emscripten.patch. You can use scripts/build_toolchain.sh for this.
Install Ren'Py to renpy/ and pygame_sdl2 to pygame_sdl2/. It's also necessary