Godot Steam integration using GDNative. Supports 💰Windows, 🐧Linux & 🍏MacOS (x86_x64/arm64).
- Download and open the example project.
- There will be a SteamAPI tab in the Project Settings, follow the instructions to configure the SteamAPI for your game.
Now you can use the following functions:
Steam.set_achievement("gator_god")
Steam.get_achievement("gator_god")
Steam.clear_achievement("gator_god")
Steam.set_leaderboard_score("High Scores", 1000)
var scores = yield(Steam.get_leaderboard_scores("High Scores", 0, 10), "done")
- Clone this repo.
git clone [email protected]:samsface/godot-steam-api.git
-
Download and install:
- https://cmake.org/download
- https://visualstudio.microsoft.com/downloads (community edition is fine)
- https://www.python.org/downloads (download Python3 if you just have 2.7)
-
Install Conan, a C++ package manager.
pip3 install conan
-
Download the Steam SDK and extract it into the lib directory were you cloned this project.
If your files are now laid out like this:
godot-steam-api/lib/steam-sdk/redistributable_bin/win64/steam_api64.dll
; you've done it correctly. -
Generate the Visual Studio project.
# in root directory were you cloned this project to, e.g. C:/work/godot-steam-api mkdir work && cd work && cmake .. && start .
-
Open
steamsdk-godot.sln
and build. CMake will install the built dlls into the example project for you every time you build. Just open the example project and your good. The library is also reloadable so no need to restart Godot every build.