diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-06-05 14:21:02 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-06-05 14:21:02 -0600 |
commit | 8b1d1a9859265ab679b20be01f6ad51e4aecee7f (patch) | |
tree | a38aa63dd7517cc495b3bcebfdfeaca3e4a044e7 /src/ui/main_menu/scripts | |
parent | 14538d486de312af41ce012836861468b8fb7897 (diff) |
Finish game... for now
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: |