Skip to main content

Example integration with Godot

We have developed a simple example to illustrate how to integrate GameRank into a Godot game.

This Godot game is available here: https://github.com/gamerankhq/godot-example

The game then performs a dice roll to generate a random score for the player. Once the player has a score, they can submit it to the Scores Leaderboard. When the score is submitted, the player's current position on the leaderboard is displayed, along with their overall best score.

All the score-related functionalities are provided by the GameRank system.

Highscores Leaderboard

To see how is the Godot code interacting with GameRank, open the gamerank.gd GDScript file. The example demonstrates how it uses the HTTPs REST API to communicate with GameRank. Feel free to re-use that code in your game!

If you need to call other functions of the HTTPs REST API than the one implemented in this file, you can adapt them to call other endpoints and use other features.

New score submitted

If you have questions, send an email to contact@gamerank.io for support.