diff --git a/scripts/board.gd b/scripts/board.gd index ae1e3aa1a628c0687a123f3c2ee774b95b2f5497..36b4359b438fa667ede3459410b1a877de38979b 100644 --- a/scripts/board.gd +++ b/scripts/board.gd @@ -54,7 +54,8 @@ func _input(event): var y_click = abs(snapped(mouse_position.y, 0)) / CELL_WIDTH print(x_click, y_click) - + +# Checks if mouse input is on the board func is_mouse_out() -> bool: var mouse_position: Vector2 = get_global_mouse_position() @@ -63,6 +64,7 @@ func is_mouse_out() -> bool: return false +# Displays board and instantiates "piece holders" func display_board() -> void: for i in BOARD_SIZE: for j in BOARD_SIZE: