Fixed settings and updated player view. Fixed many other smaler things

This commit is contained in:
2024-05-19 13:39:18 +02:00
parent 0d0b5280f8
commit d43a1c7df6
15 changed files with 364 additions and 216 deletions

View File

@@ -15,7 +15,8 @@ func _ready():
characters.list_dir_begin()
var file_name = characters.get_next()
while file_name != "":
if !file_name.ends_with(".import"):
file_name = file_name.replace('.import', '') # <--- remove the .import
if file_name.ends_with(".png"):
var texture = load("res://characters/" + file_name)
@@ -36,9 +37,4 @@ func show_grid():
func select_character(file_name: String):
print("select_character")
#character_grid_container.visible = false
character_selected.emit(file_name)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
character_selected.emit(file_name)