Skip to content
Snippets Groups Projects
Commit 0ecef466 authored by Kyaw Aung's avatar Kyaw Aung
Browse files

comments

parent 6f01b92a
No related branches found
No related tags found
1 merge request!1Refactoring game.gd to split up move validation to individual pieces, added...
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment