7 lines
252 B
GDScript
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()
|