hexland/Scripts/MainMenu.gd

15 lines
346 B
GDScript3
Raw Normal View History

2022-09-19 22:35:57 -05:00
extends Control
onready var Location = JavaScript.get_interface("location")
2022-09-19 22:35:57 -05:00
func _ready():
if Location and Location.hash != "":
## TODO
# join_room(location.hash)
pass
2022-09-19 22:35:57 -05:00
$Buttons/Host.connect("pressed", self, "host_pressed")
func host_pressed():
if Location: Location.hash = "#blarg"
get_tree().change_scene("res://Scenes/Lobby.tscn")