WavedashDocs

Godot

Drop the Wavedash add-on into your Godot project and export for web.

Copy the Godot SDK into your project, register an autoload, and export for web. GDScript calls mirror the JavaScript SDK through the built-in bridge.

View on GitHub

Install the SDK

  1. Download the add-on folder on GitHub
  2. Place it at res://wavedash/ in your project
  3. In Project > Project Settings > Autoload, add res://wavedash/WavedashSDK.gd as WavedashSDK

Web export settings

  1. Add a Web export preset in Project > Export...
  2. Enable Threads support and VRAM texture compression as needed
  3. Export to the folder you reference as upload_dir

Use the SDK from GDScript

func _ready():
    WavedashSDK.backend_connected.connect(_on_connected)
    WavedashSDK.init({"debug": true})
    WavedashSDK.ready_for_events()

func _on_connected(_payload):
    print("Playing as: ", WavedashSDK.get_username())

func post_score(leaderboard_id: String, value: int):
    WavedashSDK.post_leaderboard_score(leaderboard_id, value, true)

wavedash.toml

game_id = "YOUR_GAME_ID_HERE"
upload_dir = "./exports/web"

[godot]
version = "4.5-stable"