Skip to content

Commit ca69811

Browse files
authored
Merge pull request #20 from endlessm/hide-instructions-on-touch-devices
Hide instructions on touch devices
2 parents d902078 + b2949a4 commit ca69811

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/hud.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ func _ready():
2525
Global.timer_added.connect(_on_timer_added)
2626

2727
Input.joy_connection_changed.connect(_on_joy_connection_changed)
28-
# TODO: hide entirely if touch controls are visible?
28+
if DisplayServer.is_touchscreen_available():
29+
%Start.hide()
2930

3031

3132
func _on_joy_connection_changed(index: int, connected: bool):

0 commit comments

Comments
 (0)