diff options
Diffstat (limited to 'src/ui/main_menu/scripts')
-rw-r--r-- | src/ui/main_menu/scripts/main_menu.gd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/main_menu/scripts/main_menu.gd b/src/ui/main_menu/scripts/main_menu.gd index 2d955dc..bb96d93 100644 --- a/src/ui/main_menu/scripts/main_menu.gd +++ b/src/ui/main_menu/scripts/main_menu.gd @@ -2,11 +2,11 @@ extends MarginContainer export(NodePath) var START_OPTION_NP: NodePath export(NodePath) var EXIT_OPTION_NP: NodePath +export(NodePath) var ANIMATION_NP: NodePath onready var start_option: MenuOption = get_node(START_OPTION_NP) onready var exit_option: MenuOption = get_node(EXIT_OPTION_NP) - -onready var main: Node2D = get_parent().get_parent() +onready var animation: AnimatedSprite = get_node(ANIMATION_NP) enum Option { @@ -31,6 +31,7 @@ func _ready(): Event.connect("game_start", self, "_on_game_start") start_option.type = Option.START exit_option.type = Option.EXIT + animation.play() func _input(event: InputEvent) -> void: |