feat: animate P1 tent hover with curtain and garland lights

This commit is contained in:
enne2
2026-09-10 22:39:27 +02:00
parent 882302c6d2
commit 717a702fb2
33 changed files with 756 additions and 24 deletions
+12
View File
@@ -5,6 +5,11 @@ extends RefCounted
const DISPLAY_FONT := preload("res://shared/assets/fonts/NotoSerifDisplay-CondensedExtraBold.ttf")
const MENU_SHADER := preload("res://menus/assets/shaders/ambient_drift.gdshader")
const TENT_STAR_SHADER := preload("res://menus/assets/shaders/tent_star_glow.gdshader")
const TENT_LIGHTS_SHADER := preload("res://menus/assets/shaders/tent_lights.gdshader")
# Posizione e ingombro condivisi della freccia indietro in tutte le schermate.
const BACK_BUTTON_CENTER := Vector2(0.12, 0.14)
const BACK_BUTTON_SIZE := Vector2(0.09, 0.14)
static func set_normalized_rect(control: Control, center: Vector2, normalized_size: Vector2) -> void:
@@ -40,6 +45,13 @@ static func tent_star_material() -> ShaderMaterial:
return material
static func tent_material(garland_strength := 0.0) -> ShaderMaterial:
var material := ShaderMaterial.new()
material.shader = TENT_LIGHTS_SHADER
material.set_shader_parameter("garland_strength", garland_strength)
return material
static func add_image(parent: Control, texture: Texture2D, center: Vector2, normalized_size: Vector2, material: Material = null) -> TextureRect:
var image := TextureRect.new()
image.texture = texture