Skip to main content
A GameMaker extension for the HTML5 export, for GameMaker LTS 2022 and later. It adds the Gamavas script to your game’s page by itself. Windows, macOS, Linux, mobile and GX.games exports aren’t supported yet; guard your calls with os_browser != browser_not_a_browser if your game builds for those too.

Install

1

Import the package

Download GamavasPass-<version>.yymps from github.com/Gamavas/pass-gamemaker/releases. In GameMaker, choose Tools → Import Local Package, pick the file and import GamavasPass.
2

Register your page

At developer.gamavas.fun, connect your listing to get a client ID, and add your game’s page under Where sign-in returns. To test from GameMaker, add the local address the HTML5 runner opens too, for example http://127.0.0.1:51264/ (your port).

Sign players in

Start once, for example in your first room’s Create event:
Sign in from a click or tap, for example in a button’s Left Pressed event:
Every call reports to your callback with a struct: { ok, value, error, message }. Missing values are "", never undefined, because reading a missing struct field is an error in GML. Once gamavas_is_ready() is true, gamavas_is_signed_in() and gamavas_player() say who’s signed in: { id, handle, displayName, avatarUrl, email }.

Achievements, progress and selling

Your server

Verify it on your server with @gamavas/pass-server.

Options

Errors

error is one of popup_closed or access_denied (signing in), popup_blocked, signed_out, forbidden, not_found, rate_limited, network or not_initialized (call gamavas_init first).