Skip to Content
defold-typescript libraries
defold (official)

defold/extension-gamelift

A native extension that runs a Defold game server against the Amazon GameLift Server SDK, with prebuilt SDK libraries for Linux and macOS. It registers a gamelift Lua module with functions such as gamelift.init, gamelift.process_ready and gamelift.accept_player_session. The repository also contains an example client project.

Lua API not typed — upstream ships no .script_api, so resolve skips it.

  • GitHub: defold/extension-gamelift — pinned to 2.0.1 (released while Defold 1.2.162 was current)
    1. Pick a release from defold/extension-gamelift releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. On the server, call gamelift.init with a port and listener functions for session start, process termination and health checks.
    3. Report readiness with gamelift.process_ready.