pieces can rotate while moving
whe can color pieces dynamically pieces have collider and can kill each other
This commit is contained in:
parent
3ea7bfd5dc
commit
026d634c3a
18 changed files with 283 additions and 263 deletions
|
|
@ -14,9 +14,10 @@ var possible_positions : Array[Vector2i] = []
|
|||
func _ready() -> void:
|
||||
#$SuperPawn2.move_to(Vector2(8,8))
|
||||
#$SuperPawn.move_to(Vector2(0,0))
|
||||
for child in get_node("Board").get_children():
|
||||
child.is_clicked.connect(movement)
|
||||
for tile in get_node("Board").get_children():
|
||||
tile.is_clicked.connect(movement)
|
||||
pass # Replace with function body.
|
||||
|
||||
func movement(coord:Vector2i):
|
||||
if selected_piece:
|
||||
if coord in possible_positions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue