wild jam prototype

This commit is contained in:
2024-02-24 08:35:47 -06:00
parent e6d1f5a8df
commit bd0e9e21cd
28 changed files with 606 additions and 19 deletions

View File

@@ -18,6 +18,7 @@ func _physics_process(delta: float) -> void:
if collision.get_collider() is Chest:
var buff: Buff = collision.get_collider().open(self)
if buff:
super.received_buff(buff.color)
match(buff.color):
buff.colors.RED:
lives += 1
@@ -33,6 +34,7 @@ func _physics_process(delta: float) -> void:
color_changed.emit(color)
if Input.is_action_just_pressed("ui_accept"):
var attack: Attack = ATTACK.instantiate()
attack.set_initiator(self)
get_parent().add_sibling(attack)
if attack_pow > 0:
var attack: Attack = ATTACK.instantiate()
attack.set_initiator(self)
get_parent().add_sibling(attack)