HighNoonRoulette/scenes/mainMenu/mainMenu.gd
2025-09-06 23:19:31 +02:00

11 lines
313 B
GDScript

extends Node3D
@onready var game: PackedScene = preload("res://scenes/game/game.tscn")
@onready var animationPlayer: AnimationPlayer = $CanvasLayer/Control/AnimationPlayer
func _ready() -> void:
animationPlayer.play("logoMovement")
func _on_button_pressed() -> void:
get_tree().change_scene_to_packed(game)