fixed camera script and restructured ui folder
This commit is contained in:
parent
877ebafc74
commit
5748d34b34
32 changed files with 781 additions and 162 deletions
16
globals/Utils.gd
Normal file
16
globals/Utils.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue