feat: add juggling gym and animate circus sign

This commit is contained in:
enne2
2026-09-08 11:11:08 +02:00
parent d0991a0edf
commit 0e93e646b0
31 changed files with 629 additions and 19 deletions
+5 -13
View File
@@ -3,6 +3,7 @@ extends Control
## P3A segue la stessa composizione mockup + hotspot trasparenti di P2A.
signal back_requested
signal game_requested
signal feedback_requested(frequency: float)
const MOCKUP := preload("res://menus/assets/p3a/p3a_menu_mockup.jpg")
@@ -29,7 +30,7 @@ func _build() -> void:
_add_hotspot(Vector2(0.12, 0.14), Vector2(0.10, 0.14), func(): back_requested.emit())
_add_hotspot(Vector2(0.775, 0.64), Vector2(0.07, 0.10), func(): _change_players(-1))
_add_hotspot(Vector2(0.895, 0.64), Vector2(0.07, 0.10), func(): _change_players(1))
_add_hotspot(Vector2(0.79, 0.88), Vector2(0.30, 0.14), _show_coming_soon)
_add_hotspot(Vector2(0.79, 0.88), Vector2(0.30, 0.14), _start_game)
_build_dynamic_count()
@@ -59,15 +60,6 @@ func _change_players(delta: int) -> void:
feedback_requested.emit(440.0 + 45.0 * players_count)
func _show_coming_soon() -> void:
feedback_requested.emit(260.0)
var note := MenuUI.add_label(self, "Presto disponibile", Vector2(0.79, 0.72), Vector2(0.28, 0.09), 24)
note.add_theme_color_override("font_color", Color("#4c2917"))
note.add_theme_stylebox_override("normal", MenuUI.note_style())
note.modulate.a = 0.0
var tween := create_tween()
tween.set_pause_mode(Tween.TWEEN_PAUSE_PROCESS)
tween.tween_property(note, "modulate:a", 1.0, 0.16)
tween.tween_interval(1.6)
tween.tween_property(note, "modulate:a", 0.0, 0.28)
tween.tween_callback(note.queue_free)
func _start_game() -> void:
feedback_requested.emit(784.0)
game_requested.emit()