Files
Billiards/scenes/screens/start_screen/start.gd

16 lines
551 B
GDScript

class_name StartMenu extends Node3D
@onready var base_environment: Node3D = $base_environment
@onready var animation_player: AnimationPlayer = $animation_player
# NOTE: For future, look intio --> https://www.gotut.net/loading-screen-in-godot-4/
# Sounds: https://www.pond5.com/
func _ready() -> void:
base_environment.game_music.stream = load("res://sounds/music/Blue Dot Sessions - 02 (Lemon and Melon).mp3")
base_environment.game_music.stream.loop = true
base_environment.game_music.play()
animation_player.play("rotation")