mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-10 16:04:04 +00:00
13 lines
352 B
GDScript
13 lines
352 B
GDScript
extends Control
|
|
|
|
# Main menu: one handler per game mode. Adding a mode later (e.g. Vs AI)
|
|
# is a new button + a one-line handler pointing at its scene.
|
|
|
|
|
|
func _on_free_play_pressed() -> void:
|
|
get_tree().change_scene_to_file("res://scenes/free_play.tscn")
|
|
|
|
|
|
func _on_match_pressed() -> void:
|
|
get_tree().change_scene_to_file("res://scenes/match.tscn")
|