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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue