created fog of war

This commit is contained in:
Douwe Ravers
2024-10-05 13:12:42 +02:00
parent 71c3fad482
commit 4c0c57d5ba
40 changed files with 3396 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
extends Node
func _ready() -> void:
# Get loaded scene
var node = get_tree().current_scene
# Check if debug environment is stored
var path = DebugEnvironmentLib.get_debug_path(node)
if not FileAccess.file_exists(path): return
# Replace instance with debug environment
get_tree().call_deferred("change_scene_to_file",path)