Download the plugin archive and extract it into addons folder of your game.
Folder structure:
- game-folder
- addons
- gpx-godot-plugin
- index.html
- plugin.cfg
- plugin.pd
- gpx.gdOnce this is done:
Project -> Project SettingsPlugins tabgamepix-sdk plugin:
Project -> Reload Current ProjectExport... dialogGamePix preset

In your scripts, you will be able to use GPX object to interact with the platform.
For example, let's declare function that handles key events and run GamePix Ads.
func _input(ev):
if ev is InputEventKey and ev.scancode == KEY_I and not(ev.is_pressed()):
print("Interstitial AD started")
GPX.interstitialAd(funcref(self, "onInterstitialComplete"))
func onInterstitialComplete():
print("Intersitital AD completed")When you press the "I" key, interstitial ads will be displayed, and you will see the corresponding output in the console.
Interstitial AD started Intersitital AD completed
When the interstitial/reward ad is active, you must pause the game and sounds. The plugin should do this automatically, but if it's not working for you, please refer to the Godot pause/resume documentation.
func _input(ev):
if ev is InputEventKey and ev.scancode == KEY_R and not(ev.is_pressed()):
print("Reward AD started")
GPX.rewardAd(funcref(self, "onRewardSuccess"), funcref(self, "onRewardFail"))
func onRewardSuccess():
print("Reward AD succeed")
func onRewardFail():
print("Reward AD failed")When you press the "R" key, reward ads will be displayed, and you will see the corresponding output in the console.
Reward AD started Reward AD succeed (or failed)
GPX.lang() - gets the current preferred language by the playerGPX.updateScore(score) - should be called immediately every time the current score is updatedGPX.updateLevel(level) - should be called to send the score after the player passed the levelGPX.happyMoment() - should be called when Happy Moment just happenedGPX.setItem(key, value) - Persistently stores the value. The value must be a string.GPX.getItem(key) - Read value from storage.You can add custom background while game is loading, to do this please put background.jpg into root of exported game