WavedashDocs

Other engines

Bring any engine, framework, or language that runs in a browser to Wavedash.

Don't see your engine or language listed? If your game can produce output that runs in a browser, it works on Wavedash.

What Wavedash needs

The only requirements are:

  1. A folder of static files with an HTML entry point
  2. Your game renders into #wavedash-target
  3. You call WavedashJS.updateLoadProgressZeroToOne(value) during loading
  4. You call WavedashJS.loadComplete() when the player can interact

That's it. Wavedash injects WavedashJS into the page before your code runs, so there's nothing to install.

Minimal example

(async function () {
  const target = document.getElementById("wavedash-target");

  // Set up your game however you need to
  const canvas = document.createElement("canvas");
  canvas.style.width = "100%";
  canvas.style.height = "100%";
  target.appendChild(canvas);

  WavedashJS.updateLoadProgressZeroToOne(0.5);
  await startYourGame(canvas);
  WavedashJS.loadComplete();
})();

wavedash.toml

entrypoint is the first file Wavedash loads inside upload_dir. For most browser builds, this should be index.html, and that page can load whatever scripts, styles, and assets your game needs.

game_id = "YOUR_GAME_ID_HERE"
upload_dir = "./build/web"
entrypoint = "index.html"

Need help?

If you're having trouble getting your engine to work with Wavedash, check the guides for C, C++, Rust, Go, Zig, or JavaScript — one of them likely covers your toolchain. Otherwise, reach out on Discord.