# TODO: convert to just combat UI, instancing appropriate zone/area # BUG: elements not adjusting properly when moving to second monitor extends Control var deltaCount := 0 var enemyMoveSpeed := 5.0 # var questComplete := false var canContinue := false var middleX var playerPos func _ready() -> void: if OS.is_debug_build(): %DebugMenu.show() Engine.time_scale = 10.0 SignalBus.quest_generated.connect(_on_quest_generated) SignalBus.quest_completed.connect(_on_quest_completed) _create_area() func _process(_delta: float) -> void: deltaCount += 1 if canContinue: _continue_show() func _create_area() -> void: var worldArea = load("res://scenes/world_area.tscn").instantiate() add_child(worldArea) move_child(worldArea, 0) func _on_button_test_pressed() -> void: %DebugMenu/ButtonTest.text = "pass" pass func _on_button_exit_pressed() -> void: get_tree().quit() func _continue_show() -> void: %UITop/ContinueButton.modulate.a += 0.05 func _on_quest_generated(quest) -> void: %QuestsContainer.add_child(quest) # TODO: move all quest stuff to quest class? func _on_quest_completed() -> void: if %UITop/AutoCheck.button_pressed: # TODO: eventually add new area progress trigger pass else: canContinue = true