Basic guest list
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 1m13s

This commit is contained in:
2026-01-31 12:41:56 +01:00
parent 6640ccace8
commit f2dcd332f4
12 changed files with 335 additions and 40 deletions

29
scenes/main/main.gd Normal file
View File

@@ -0,0 +1,29 @@
extends Node2D
@onready var animation_player: AnimationPlayer = $AnimationPlayer
@onready var sfx_player: AudioStreamPlayer = $SFXPlayer
var stream_player: AudioStreamPlaybackInteractive
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
stream_player = sfx_player.get_stream_playback() as AudioStreamPlaybackInteractive
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func play_list_up_sfx() -> void:
stream_player.switch_to_clip_by_name("list_up")
func play_list_down_sfx() -> void:
stream_player.switch_to_clip_by_name("list_down")
func _on_guest_list_mouse_entered() -> void:
animation_player.play("guest_list_up")
func _on_guest_list_mouse_exited() -> void:
animation_player.play("guest_list_down")