add skeleton for update grid function
This commit is contained in:
6
grid.gd
6
grid.gd
@@ -32,9 +32,6 @@ func _ready():
|
|||||||
|
|
||||||
calculate_token_groups()
|
calculate_token_groups()
|
||||||
|
|
||||||
func _process(_delta: float) -> void:
|
|
||||||
pass
|
|
||||||
|
|
||||||
func _on_token_clicked(token_coord):
|
func _on_token_clicked(token_coord):
|
||||||
var group = get_group_of_token(token_coord)
|
var group = get_group_of_token(token_coord)
|
||||||
if group.size() >= min_group_size:
|
if group.size() >= min_group_size:
|
||||||
@@ -66,6 +63,9 @@ func highlight_group(group: Array, enable: bool):
|
|||||||
hovered_group = group
|
hovered_group = group
|
||||||
|
|
||||||
func update_grid():
|
func update_grid():
|
||||||
|
# search for empty cells and drop tokens above them down
|
||||||
|
|
||||||
|
# search for empty coluns and shift tokens horizontally to fill them
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func populate_grid():
|
func populate_grid():
|
||||||
|
|||||||
Reference in New Issue
Block a user