From 0ecef4665ea123dea677f9d70f55f7b214400944 Mon Sep 17 00:00:00 2001 From: Kyaw Aung <kyawaung0924@gmail.com> Date: Sun, 26 Jan 2025 18:18:01 -0600 Subject: [PATCH] comments --- scripts/board.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/board.gd b/scripts/board.gd index ae1e3aa..36b4359 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: -- GitLab