diff --git a/game/src/Taquin.gd b/game/src/Taquin.gd index a7274a4..244a39a 100644 --- a/game/src/Taquin.gd +++ b/game/src/Taquin.gd @@ -36,4 +36,14 @@ func _ready() -> void: add_child(piece) pieces_row.append(piece) - pieces.append(pieces_row) \ No newline at end of file + pieces.append(pieces_row) + +func _input(event): + if event.is_action_pressed("ui_up"): + print("up") + if event.is_action_pressed("ui_down"): + print("down") + if event.is_action_pressed("ui_left"): + print("left") + if event.is_action_pressed("ui_right"): + print("right")