godot-demo-projects/2d/pong/wall.gd

8 lines
143 B
GDScript3
Raw Normal View History

extends Area2D
func _on_wall_area_entered( area ):
if area.get_name() == "ball":
#oops, ball went out of game place, reset
area.reset()