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

fix: white is now bottom of the board

parent dd621fed
No related branches found
No related tags found
1 merge request!1Refactoring game.gd to split up move validation to individual pieces, added...
...@@ -50,7 +50,7 @@ func display_board(): ...@@ -50,7 +50,7 @@ func display_board():
# Instantiate texture holders, scene that holds pieces # Instantiate texture holders, scene that holds pieces
var holder = TEXTURE_HOLDER.instantiate() var holder = TEXTURE_HOLDER.instantiate()
pieces.add_child(holder) pieces.add_child(holder)
holder.global_position = Vector2(-j * CELL_WIDTH + (CELL_WIDTH * 3.5), i * CELL_WIDTH - (CELL_WIDTH * 3.5)) holder.global_position = Vector2(j * CELL_WIDTH + (CELL_WIDTH * -3.5), -i * CELL_WIDTH - (CELL_WIDTH * -3.5))
# Looks at board array and matches pieces with its respective value # Looks at board array and matches pieces with its respective value
match board[i][j]: match board[i][j]:
......
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