|
@@ -57,8 +57,10 @@ func _unhandled_input(event):
|
|
if event.is_pressed():
|
|
if event.is_pressed():
|
|
if event.is_action(turn_left_action):
|
|
if event.is_action(turn_left_action):
|
|
dire_delta = -1
|
|
dire_delta = -1
|
|
|
|
+ get_tree().set_input_as_handled()
|
|
elif event.is_action(turn_right_action):
|
|
elif event.is_action(turn_right_action):
|
|
dire_delta = 1
|
|
dire_delta = 1
|
|
|
|
+ get_tree().set_input_as_handled()
|
|
|
|
|
|
func _on_game_start():
|
|
func _on_game_start():
|
|
move()
|
|
move()
|