Fusion Defold SDK 3 is a development preview and is not intended for production use yet.
This guide shows how to build a simple multiplayer game/application using the Photon Fusion extension for Defold. It covers app id creation, connection, spawning, movement replication, custom properties and RPCs. By the end, two clients will move around the same room and see each other in real time.
Requirements: Installed Defold editor and basic knowledge of Lua and Defold.
Fusion runs on the Photon Cloud. The App ID ties your project to a backend that handles connection, authentication, matchmaking and finally state distribution. Follow these steps to create a new App ID to use for the rest of this guide:
To use Photon Fusion in your Defold project, add a version of the Photon Fusion extension to your game.project dependencies from the list of available Releases. Find the version you want, copy the URL to ZIP archive of the release and add it to the project dependencies.

Select Project->Fetch Libraries once you have added the version to game.project to download the version and make it available in your project.
Photon Fusion can conveniently use pre-defined values at startup when you call fusion.initialize_from_settings(). Set your credentials in game.project > Runtime > Fusion: