Cleanup code

This commit is contained in:
Moe Poi ~ 2023-10-08 17:51:55 +07:00
parent 16d0bc8d67
commit ffa52c30ca
3 changed files with 2 additions and 20 deletions

View file

@ -2,16 +2,6 @@ extends Area2D
signal enemy_entered_base(enemy)
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_body_entered(body):
if body.is_in_group("Enemy"):
var enemy = body.get_parent()

View file

@ -48,8 +48,8 @@ func update_healthbar():
else:
$EnemyBody/HealthBar.visible = true
func hit(damage : int):
health = health - damage
func hit(value : int):
health = health - value
func destroy():
queue_free()

View file

@ -2,14 +2,6 @@ extends Control
signal on_resume()
# Called when the node enters the scene tree for the first time.
func _ready():
hide()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func show_menu():
show()