wild jam prototype
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user