Play ball with the enemy
Enemy can return the ball to the player
This commit is contained in:
parent
332c0fb0e1
commit
e0633efcbe
14 changed files with 139 additions and 44 deletions
|
@ -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 player’s Area2D only collide with balls
|
||||
# We only enter this function after colliding with a ball
|
||||
collide_with_ball.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue