Dev Demo 2
* Ajout des achievement Steam * Ajout d'une annonce à la récupération d'un artefact et ajout de textes axplicatifs sur les annonces d'artefacts et de mutation * Fix du léger glitch des tooltips * Ajout de clarté sur la machine de respawn dans le vaisseau
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
extends Node
|
||||
|
||||
const APP_ID = "4452760"
|
||||
|
||||
func _init():
|
||||
OS.set_environment("SteamAppID", APP_ID)
|
||||
OS.set_environment("SteamGameID", APP_ID)
|
||||
const ACH_SPIN_PLANET="STW_SPIN_PLANET"
|
||||
const ACH_FINISH_TUTORIAL="STW_FINISH_TUTORIAL"
|
||||
const ACH_MEET_DEMETER="STW_MEET_DEMETER"
|
||||
const ACH_UNLOCK_ALL_MUTATION="STW_UNLOCK_ALL_MUTATIONS"
|
||||
const ACH_KICK_YOUR_OLD_BODY="STW_KICK_YOUR_OLD_BODY"
|
||||
const ACH_MERCURY_BASE="STW_REACH_MERCURY_BASE"
|
||||
const ACH_REACH_VENUS_BASE="STW_REACH_VENUS_BASE"
|
||||
|
||||
func _ready():
|
||||
Steam.steamInit()
|
||||
|
||||
var is_running = Steam.isSteamRunning()
|
||||
|
||||
if !is_running:
|
||||
printerr("Steam is not running")
|
||||
return
|
||||
func unlock_achievement(achivement_name : String):
|
||||
if Steam.isSteamRunning():
|
||||
var status = Steam.getAchievement(achivement_name)
|
||||
print("Steam Achievement %s" %achivement_name)
|
||||
if status.ret and not status.achieved:
|
||||
Steam.setAchievement(achivement_name)
|
||||
Steam.storeStats()
|
||||
Reference in New Issue
Block a user