diff --git a/scripts/base/base.gd b/scripts/base/base.gd index 5a0e9cb..b66ab2d 100644 --- a/scripts/base/base.gd +++ b/scripts/base/base.gd @@ -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() diff --git a/scripts/enemies/enemy.gd b/scripts/enemies/enemy.gd index 0f57b49..a492559 100644 --- a/scripts/enemies/enemy.gd +++ b/scripts/enemies/enemy.gd @@ -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() diff --git a/scripts/ui/pause_menu.gd b/scripts/ui/pause_menu.gd index e328d6b..579c989 100644 --- a/scripts/ui/pause_menu.gd +++ b/scripts/ui/pause_menu.gd @@ -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()