fixed camera script and restructured ui folder

This commit is contained in:
Luca 2024-09-27 21:31:03 +02:00
parent 877ebafc74
commit 5748d34b34
32 changed files with 781 additions and 162 deletions

16
globals/Utils.gd Normal file
View file

@ -0,0 +1,16 @@
extends Node
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
func load_base_monster_data(p_unique_id) -> MonsterData:
var path = "res://resources/monsters/" + p_unique_id + ".tres"
if ResourceLoader.exists(path):
var base_monster = load(path)
return base_monster
else:
printerr("Monster.gd: No monster with the ID %s found" % p_unique_id)
return null

18
globals/audio_manager.gd Normal file
View file

@ -0,0 +1,18 @@
extends Node
@export var music: Array
func play():
pass
func stop_all():
pass
func fade_out():
pass
func fade_in():
pass
func battle():
pass