ajout mod poulpe
This commit is contained in:
parent
4bab72b7d4
commit
2ae314b374
16 changed files with 296 additions and 7 deletions
|
@ -13,4 +13,6 @@ func Collision(body: Node2D) -> void:
|
|||
if body.is_in_group("World_Border") :
|
||||
queue_free()
|
||||
if body.is_in_group("Enemies") :
|
||||
body.take_damage(1)
|
||||
print(body.vie)
|
||||
queue_free()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
extends Area2D
|
||||
|
||||
var timer = 0.0
|
||||
var cooldown = 0.35
|
||||
var cooldown = 0.3
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
timer += delta
|
||||
|
@ -9,6 +9,5 @@ func _process(delta: float) -> void:
|
|||
queue_free()
|
||||
|
||||
func Collision(body: Node2D) -> void:
|
||||
|
||||
if body.is_in_group("Enemies") :
|
||||
queue_free()
|
||||
body.take_damage(3)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
extends Area2D
|
||||
|
||||
var timer = 0.0
|
||||
var cooldown = 1.5
|
||||
var cooldown = 0.33
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
timer += delta
|
||||
|
@ -11,4 +11,4 @@ func _process(delta: float) -> void:
|
|||
|
||||
func Collision(body: Node2D) -> void:
|
||||
if body.is_in_group("Enemies") :
|
||||
queue_free()
|
||||
body.take_damage(2)
|
||||
|
|
|
@ -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