Ren'Py supports web builds through its Emscripten-based HTML5 export. The output is a folder of HTML, JS, WASM, and game data that Wavedash hosts directly. Wavedash detects Ren'Py automatically and drives the loading overlay from the engine's boot phases.
View example project on GitHub Playtest the example projectThe Wavedash SDK is built into Ren'Py 8.6. Ren'Py 8.5.x doesn't include it, and 8.6.0 isn't a stable release yet, so use a Ren'Py 8.6 nightly build.
Install Ren'Py 8.6 nightly
- Go to nightly.renpy.org and use the Ren'Py 8 Development column. The current-8 link always points to the latest 8.6.0 build. The Ren'Py 8 Fix column has 8.5.4 builds, which don't include the Wavedash SDK.
- Download the SDK for your platform:
-sdk.dmgfor macOS,-sdk.7z.exefor Windows, or-sdk.tar.bz2for Linux (-sdkarm.tar.bz2for ARM Linux). - Download the
-web.zipfrom the same page and unpack it into the SDK root, or let the launcher download web support the first time you build for web.
Nightly builds are for testing. Ren'Py notes that APIs introduced in nightlies may change before the final release, so keep your project in version control and expect small changes before 8.6.0 ships.
Set your game ID
Create a game in the Developer Portal, then add its ID to game/options.rpy:
define build.wavedash_id = "YOUR_GAME_ID_HERE"When this is set, every web build also writes a wavedash.toml into the web build folder:
game_id = "YOUR_GAME_ID_HERE"
upload_dir = "."
[renpy]
version = "8.6.0"
executable = "game.zip"version is the Ren'Py version that made the build. Ren'Py regenerates this file on every web build, so set the game ID in options.rpy rather than editing the file.
Build for web
From the Ren'Py launcher: select your project → Web → Build Web Application.
From the command line:
"$RENPY_SDK/renpy.sh" launcher web_build ./my-project --destination ./buildThe output contains index.html, renpy.wasm, renpy.js, game.zip, icons, and the generated wavedash.toml.
Upload
From the launcher
Select your project → Web → Upload to wavedash.com. The launcher:
- Builds the web distribution first if it's missing, or if
build.wavedash_idchanged since the last build. - Downloads the Wavedash CLI into the SDK's
tmpfolder and keeps it updated. - Opens a browser sign-in if the CLI isn't authenticated yet.
- Runs
wavedash build pushon the web build.
From the command line
Point the CLI at the generated wavedash.toml:
wavedash build push --config ./build/wavedash.tomlupload_dir = "." is relative to wavedash.toml, so --config works from any directory. To test locally first, run wavedash dev --config ./build/wavedash.toml.
Uploading doesn't make the build public. Test it from the playtest link, then publish it from the Developer Portal.
Loading progress
You don't have to wire this up — Wavedash detects ?engine=RENPY from the iframe URL and installs a progress shim that watches Ren'Py's own boot phases (engine download, game data download, unpacking, script load). The Wavedash loading overlay tracks them automatically.
What's built in
- Initialization: Ren'Py calls
Wavedash.init()when the display starts, which dismisses the loading overlay. You don't need to call it yourself. - Achievements:
achievement.grant("first_chapter_complete")also unlocks the achievement on Wavedash. Use the same achievement IDs you set up in the Developer Portal. - Cloud saves: On launch, Ren'Py downloads the player's saves from Wavedash, waiting up to 30 seconds. After every save, it uploads the whole save directory as one file. The most recent upload wins.
- Fullscreen: Ren'Py's standard
Preference("display", "fullscreen")works. See Fullscreen.
The wavedash module
Ren'Py 8.6 adds a wavedash module for the rest of the SDK. Every function is safe to call on desktop builds and on web builds hosted elsewhere; it does nothing and returns None, 0, or False.
| Name | What it does |
|---|---|
wavedash.is_active | True when the game is running on Wavedash. Use it to show Wavedash-only UI. |
wavedash.set_achievement(id) | Unlocks an achievement. achievement.grant() calls this for you. |
wavedash.get_achievement(id) | Returns True if the achievement is unlocked. |
wavedash.set_stat(id, value) | Sets a stat to an int or float. |
wavedash.get_stat(id) | Returns a stat's value. |
wavedash.get_username(user_id=None) | Returns the current player's username, or another user's. |
wavedash.get_user_id() | Returns the current player's user ID. |
wavedash.get_user_avatar_url(user_id, size=wavedash.AVATAR_SIZE_MEDIUM) | Returns an avatar URL. Sizes are AVATAR_SIZE_SMALL (64), AVATAR_SIZE_MEDIUM (128), AVATAR_SIZE_LARGE (256), or any pixel size. |
wavedash.get_launch_params() | Returns the launch parameters the game was opened with. |
wavedash.event_listeners | A list of callback(event, data) functions called for SDK events. |
default wavedash_fullscreen = False
init python:
def on_wavedash_event(event, data):
if event == "FullscreenChanged":
store.wavedash_fullscreen = data["isFullscreen"]
wavedash.event_listeners.append(on_wavedash_event)
label start:
$ player_name = wavedash.get_username() or "Player"
"Welcome, [player_name]!"For JS SDK methods the module doesn't cover, call window.Wavedash through renpy.emscripten.run_script(...), or run_script_string(...) when you need a return value:
$ language = renpy.emscripten.run_script_string("window.Wavedash?.getUserLanguage() ?? 'en'")renpy.emscripten is the documented Ren'Py module for web JS interop. It's None on desktop builds, so guard these calls with if renpy.emscripten: or if wavedash.is_active:.
Ren'Py's own documentation doesn't cover the wavedash module yet, and its API may change before 8.6.0 is released.
Fullscreen
The Wavedash SDK routes the browser's standard fullscreen API through the Wavedash page, so Ren'Py's built-in Preference("display", "fullscreen") works on Wavedash. Players can also use the fullscreen control on the game page.
Fullscreen requests only work in an uploaded build, not under wavedash dev.
Notes
main_menulabel vs screen: Ren'Py checks for amain_menulabel before using themain_menuscreen. If you only define a screen, add an explicitlabel main_menu: call screen main_menuso Ren'Py actually mounts it.- Template screens required: Real Ren'Py games include
game/screens.rpy,game/gui.rpy, andgame/gui/images from the SDK template. If you started from a barescript.rpy, the ESC menu (Save / Load / Preferences) will be missing. - Web build size: Ren'Py web builds can be 50MB+ with audio/image assets. Compress audio to OGG and resize images for web before building.