FallInGame
TaktycznyBocian
plain_text
3 years ago
307 B
29
Indexable
extends Area2D
const ball_scene = preload('res://Game/Ball.tscn')
func _process(_delta):
var ball = ball_scene.instance()
var bodies = get_overlapping_bodies()
for body in bodies:
if body.is_in_group('Ball'):
body.queue_free()
get_tree().get_root().get_node('Level').add_child(ball)
Editor is loading...