Setup plugin
Make an account in SilentWolf. Make an game in SilentWolf,then copy your API key and your gameID.
Open an autoload and add this to it
# Globals
func _ready():
LoudWolf.configure_api_key("YourAPIKey")
LoudWolf.configure_game_id("YourGameID")
LoudWolf.configure_game_version("1.0.0")
Or if you are in open source project use an .env file to store your api key in seperate file named LoudWolfAPIKey.env
.
# Globals
func _ready():
var file=FileAccess.open("res://LoudWolfAPIKey.env", FileAccess.READ)
LoudWolf.configure_api_key(file.get_as_text())
LoudWolf.configure_game_id("YourGameID")
LoudWolf.configure_game_version("1.0.0")
And in LoudWolfAPIKey.env
you paste ONLY your API key.
yourAPIKey
If you want to export to android you have to add the internet permission