Public repository for MUR pre alpha
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
528 B

  1. extends Control
  2. onready var player_settings = find_node("player_settings")
  3. func _ready():
  4. find_node("bots").set_pressed(local_storage.read_value("bots", true))
  5. func _draw():
  6. find_node("start").grab_focus()
  7. func _on_start_pressed():
  8. var name = player_settings.get_name_node().text
  9. var color = player_settings.get_color_node().color
  10. var bots = find_node("bots").is_pressed()
  11. queue_free()
  12. server.local_game(name,color,bots)
  13. func _on_back_pressed():
  14. queue_free()
  15. get_tree().get_root().get_node("main_menu").show()