ajout mod poulpe
This commit is contained in:
parent
4bab72b7d4
commit
2ae314b374
16 changed files with 296 additions and 7 deletions
|
@ -21,6 +21,8 @@ var lyre_cooldown = 1
|
|||
|
||||
var slot = [null, null]
|
||||
|
||||
var vie = 10
|
||||
|
||||
func _ready() -> void:
|
||||
flute = load("res://scripts/Instrument/Flute.gd").new()
|
||||
flute.set_scene_parent(get_tree().get_root())
|
||||
|
@ -99,3 +101,8 @@ func _process(delta: float) -> void:
|
|||
lyre_timer = lyre_cooldown
|
||||
|
||||
|
||||
func take_damage(dmg : int) :
|
||||
vie -= dmg
|
||||
print(vie)
|
||||
if vie <= 0:
|
||||
queue_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue