Play ball with the enemy

Enemy can return the ball to the player
This commit is contained in:
Mathilde Grapin 2023-06-27 21:25:32 +02:00
parent 332c0fb0e1
commit e0633efcbe
14 changed files with 139 additions and 44 deletions

View file

@ -15,7 +15,7 @@ func _ready():
position.y += y_spawn_offset
func _on_area_2d_body_entered(body: Node2D):
func _on_area_2d_body_entered(_body: Node2D):
# As players Area2D only collide with balls
# We only enter this function after colliding with a ball
collide_with_ball.emit()