Extensive work done on basically everything. Attacks prototyped, animations prototyped, pawnbody split out, all traps but pitfall implemented, UI hooked up more.

This commit is contained in:
2026-01-01 07:36:54 -05:00
parent 84bf495d11
commit b4910013c0
89 changed files with 1994 additions and 64 deletions

View File

@@ -0,0 +1,18 @@
class_name ControlDisplay extends Control
@onready var range_attack_button : TextureButton = $RangedAttack
@onready var melee_attack_button : TextureButton = $MeleeAttack
@onready var trap_button : TextureButton = $Trap
@onready var detect_button : TextureButton = $Detect
@onready var switch_button : TextureButton = $Switch
func _on_melee_range_changed(melee : bool) -> void:
range_attack_button.visible = !melee
melee_attack_button.visible = melee
func _process(delta: float) -> void:
trap_button.set_pressed_no_signal(Input.is_action_pressed("lay trap"))
detect_button.set_pressed_no_signal(Input.is_action_pressed("detect"))
switch_button.set_pressed_no_signal(Input.is_action_pressed("detonate"))
melee_attack_button.set_pressed_no_signal(Input.is_action_pressed("attack"))
range_attack_button.set_pressed_no_signal(Input.is_action_pressed("attack"))