Texpand/scenes/Grid/row_test.gd
2024-08-17 19:46:21 +02:00

7 lines
252 B
GDScript

extends Area2D
func _physics_process(delta: float) -> void:
if get_overlapping_areas().size() == 10 and GLOBAL.currentBlock.stopped:
for i in get_overlapping_areas():
GLOBAL.points += i.points
i.queue_free()#get_parent().get_parent().split()