20 lines
493 B
GDScript
20 lines
493 B
GDScript
extends Node
|
|
|
|
var score : int = 0
|
|
|
|
const secrets_file_path : String = "res://secrets.json"
|
|
var initialised_silent_wolf : bool = false
|
|
|
|
func _ready():
|
|
var json : JSON = JSON.new()
|
|
var file : FileAccess = FileAccess.open(secrets_file_path, FileAccess.READ)
|
|
var contents : String = file.get_as_text()
|
|
|
|
if json.parse(contents) == OK:
|
|
if json.data is Dictionary:
|
|
SilentWolf.configure(json.data)
|
|
|
|
SilentWolf.configure_scores({
|
|
"open_scene_on_close": "res://Scenes/main_menu.tscn"
|
|
})
|