Parakeets minigame feedbacks

This commit is contained in:
Adrien Ufferte
2026-02-23 11:38:20 +01:00
parent 8d113dad92
commit b0bedba89c
2 changed files with 7 additions and 28 deletions
+4 -2
View File
@@ -43,7 +43,7 @@ var original_text_box_color: Color
@onready var animated_sprite: AnimatedSprite2D = $AnimatedSprite2D
@onready var animated_sprite_2d_feathers: AnimatedSprite2D = $AnimatedSprite2D_Feathers
@onready var label: Label = $Label
@onready var label: Label = $TextBox_Sprite2D/PercentMarginContainer/AspectRatioContainer/AutoSizeLabel/Label
@onready var right_fx: RightFX = $RightFX
@onready var right_stars: RightStarsFX = $Right_Stars
@onready var wrong_fx: WrongFX = $WrongFX
@@ -70,8 +70,10 @@ func turn_to_back() -> void:
func turn_to_front() -> void:
animated_sprite.play_backwards("turn_to_back")
await animated_sprite.animation_finished
var animation_time: float = Utils.get_animation_duration(animated_sprite, "turn_to_back")
await get_tree().create_timer(animation_time/2).timeout
label.show()
await animated_sprite.animation_finished
animated_sprite.play("idle_front")
+3 -26
View File
@@ -5,19 +5,12 @@
[ext_resource type="SpriteFrames" uid="uid://wybpq21deku7" path="res://sources/minigames/parakeets/red_parakeet_animations.tres" id="2_k0dcm"]
[ext_resource type="Texture2D" uid="uid://c34sgkbvr3h8q" path="res://assets/minigames/minigame_ui/graphic/primary_text_box.png" id="3_jc4en"]
[ext_resource type="Script" uid="uid://d5qkkg88431w" path="res://sources/utils/percent_margin_container.gd" id="4_oc4sp"]
[ext_resource type="FontFile" uid="uid://bw8cb4e0a7ayj" path="res://assets/fonts/kalulu_mulish_regular.otf" id="4_xdkkw"]
[ext_resource type="PackedScene" uid="uid://bgio7muqck2bu" path="res://sources/utils/auto_size_label.tscn" id="5_q71gb"]
[ext_resource type="LabelSettings" uid="uid://c7aoyw5gjrrnp" path="res://resources/themes/minigames_label_settings_parakeet.tres" id="5_xdkkw"]
[ext_resource type="PackedScene" uid="uid://dlmbxcgiv8tpr" path="res://sources/utils/fx/wrong.tscn" id="6_7mdw2"]
[ext_resource type="SpriteFrames" uid="uid://bortxskacy6vx" path="res://sources/minigames/parakeets/red_parakeet_feathers_animations.tres" id="9_oc4sp"]
[ext_resource type="PackedScene" uid="uid://cs6g7fhc0bjvh" path="res://sources/utils/fx/right_stars.tscn" id="12_q71gb"]
[sub_resource type="LabelSettings" id="LabelSettings_thibt"]
font = ExtResource("4_xdkkw")
font_size = 120
font_color = Color(0.2, 0.2, 0.2, 1)
outline_color = Color(0.2, 0.2, 0.2, 1)
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2q8kg"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_mmhru"]
@@ -44,8 +37,8 @@ scale = Vector2(2.5, 2.5)
[node name="TextBox_Sprite2D" type="Sprite2D" parent="." unique_id=1673626178]
unique_name_in_owner = true
position = Vector2(0, 600)
scale = Vector2(1.5, 1.5)
position = Vector2(-40.000004, 640)
scale = Vector2(2, 2)
texture = ExtResource("3_jc4en")
[node name="PercentMarginContainer" type="Container" parent="TextBox_Sprite2D" unique_id=852816295]
@@ -74,7 +67,7 @@ layout_mode = 2
[node name="Label" parent="TextBox_Sprite2D/PercentMarginContainer/AspectRatioContainer/AutoSizeLabel" index="0" unique_id=1172353947]
theme_override_colors/font_color = Color(0, 0, 0, 1)
text = ""
label_settings = SubResource("LabelSettings_thibt")
label_settings = ExtResource("5_xdkkw")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1157745331]
scale = Vector2(2, 2)
@@ -90,22 +83,6 @@ sprite_frames = ExtResource("9_oc4sp")
animation = &"feathers_fall"
offset = Vector2(2.08165e-12, -82)
[node name="Label" type="Label" parent="." unique_id=1921167596]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -320.0
offset_top = 439.99994
offset_right = 320.0
offset_bottom = 759.99994
grow_horizontal = 2
grow_vertical = 2
label_settings = ExtResource("5_xdkkw")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Button" type="Button" parent="." unique_id=1264594927]
offset_left = -325.0
offset_top = -680.0