Added upgrade system

This commit is contained in:
2024-05-10 20:47:29 +01:00
parent 099340f870
commit 1489d93ae6
38 changed files with 993 additions and 78 deletions

View File

@@ -22,10 +22,10 @@ func _ready() -> void:
func _process(_delta) -> void:
pass
func hit() -> void:
func hit(power : int) -> void:
if hits <= 0:
return
hits -= 1
hits -= power
if hits <= 0:
collision_layer = 0
if my_type == INVULNERABLE: