WavedashDocs

Construct

Export Construct 3 projects to HTML5 and publish the folder to Wavedash.

View the example on GitHub

Construct 3 exports directly to HTML5 with no additional tooling. The output is a self-contained folder of HTML, JS, and assets that runs in any browser.

Export your game

  1. Open Menu > Project > Export
  2. Select Web (HTML5) as the export target
  3. Choose a destination folder (e.g. build/web)
  4. Under Advanced, keep Deduplicate images and Recompressing images enabled for smaller builds

The output folder contains index.html, your scripts, and all assets — ready to upload.

SDK integration

Wavedash injects WavedashJS before your code runs. You can call it from Construct's JavaScript scripting or through a custom addon.

Using JavaScript scripting

In a script file or inline script action:

const user = WavedashJS.getUser();
console.log("Playing as: " + user.username);

await WavedashJS.uploadLeaderboardScore("high-scores", runtime.globalVars.Score, true);

Using event sheets

Create a small JavaScript function file that wraps SDK calls, then invoke them from event sheet "Run JavaScript" actions:

window.wavedashSubmitScore = function(id, score) {
  WavedashJS.uploadLeaderboardScore(id, score, true);
};

window.wavedashUnlockAchievement = function(id) {
  WavedashJS.setAchievement(id);
  WavedashJS.storeStats();
};

Load progress

Call WavedashJS.loadComplete() once the first layout is ready. If your game has a loading screen, report progress during asset loading:

WavedashJS.updateLoadProgressZeroToOne(progress);

wavedash.toml

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