]> Untitled Git - catris.git/blobdiff - script/piece.gd
Added to_string to piece
[catris.git] / script / piece.gd
index aa50f0a231615b17828873e912d600f74718ee28..f2aa81c86cce545a99730c7408c3c871b60f1fa7 100644 (file)
@@ -26,3 +26,7 @@ func _ready() -> void:
                var pos_x: int = floori(c.position.x / block_size)
                var pos_y: int = floori(c.position.y / block_size)
                cell_grid.append(Vector2i(pos_x, pos_y))
+
+
+func _to_string() -> String:
+       return str(cell_grid)