Skip to content

Instantly share code, notes, and snippets.

@jedStevens
Created May 17, 2017 21:49
Show Gist options
  • Save jedStevens/78b1cc82662ae2b50ddd0b184c78ecf9 to your computer and use it in GitHub Desktop.
Save jedStevens/78b1cc82662ae2b50ddd0b184c78ecf9 to your computer and use it in GitHub Desktop.
Tester script for GodotSteam
extends Node2D
func _ready():
Steam.steamInit()
var running = Steam.isSteamRunning()
print("steam running: ", running)
var persona = Steam.getPersonaName()
print("persona: ", persona)
var friends = Steam.getFriendCount()
print("# of friends: ", friends)
var ip_country = Steam.getIPCountry()
print("Country: ", ip_country)
func _process(delta):
Steam.run_callbacks()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment