@ -3,4 +3,5 @@
assets/binary files/elements_core_pack_2.14.24/
*.zip
debug.log
@ -1,11 +1 @@
extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
@ -6,7 +6,6 @@ var target: Combatant
var damage: DamageSource
func _init():
print("Setting action name")
name = "Attack"
func execute():
@ -45,3 +45,5 @@ func dump_log_file():
var file = FileAccess.open("debug.log", FileAccess.WRITE)
output.trim_suffix("\n")
file.store_string(output)
file.flush()
file = null
@ -27,3 +27,8 @@ func _ready():
game_state.state_process(delta)
func _exit_tree():
# TODO: Move this into the app main scene once it exists
$Debugger.debug_logger.dump_log_file()