Created
May 17, 2017 21:49
-
-
Save jedStevens/78b1cc82662ae2b50ddd0b184c78ecf9 to your computer and use it in GitHub Desktop.
Tester script for GodotSteam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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