This commit is contained in:
2025-01-18 15:45:09 +01:00
parent f1bfb48fcf
commit 114e09172f
6 changed files with 94 additions and 7 deletions

71
scene/display_song.tscn Normal file
View File

@@ -0,0 +1,71 @@
[gd_scene load_steps=6 format=3 uid="uid://bi1sl1tcpssyd"]
[ext_resource type="Script" path="res://script/display_song.gd" id="1_el3j1"]
[ext_resource type="Theme" uid="uid://dwtios6w33wxq" path="res://theme/label_theme.tres" id="2_p16cs"]
[sub_resource type="Animation" id="Animation_2j0q6"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Control:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0)]
}
[sub_resource type="Animation" id="Animation_a1cki"]
resource_name = "alphapasla"
length = 6.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Control:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.966667, 5, 6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_86fsc"]
_data = {
"RESET": SubResource("Animation_2j0q6"),
"alphapasla": SubResource("Animation_a1cki")
}
[node name="display_song" type="CanvasLayer" node_paths=PackedStringArray("label", "anim")]
script = ExtResource("1_el3j1")
label = NodePath("Control/Label")
anim = NodePath("AnimationPlayer")
[node name="Control" type="Control" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 3
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
grow_vertical = 0
[node name="Label" type="Label" parent="Control"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -23.0
offset_right = 80.0
grow_vertical = 0
theme = ExtResource("2_p16cs")
theme_override_font_sizes/font_size = 90
text = "qwrertuiioyo"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_86fsc")
}

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=10 format=3 uid="uid://c74354tlmcg6h"]
[gd_scene load_steps=11 format=3 uid="uid://c74354tlmcg6h"]
[ext_resource type="Script" path="res://script/player.gd" id="1_kjuyr"]
[ext_resource type="PackedScene" uid="uid://bi1sl1tcpssyd" path="res://scene/display_song.tscn" id="2_0o8k8"]
[ext_resource type="PackedScene" uid="uid://b5rkwb64wgdwf" path="res://scene/gpu_particles_3d.tscn" id="2_ctykj"]
[ext_resource type="PackedScene" uid="uid://cqla6v58rvrqd" path="res://scene/main.tscn" id="3_wfafm"]
@@ -121,7 +122,7 @@ _data = {
"finger": SubResource("Animation_njhrs")
}
[node name="CharacterBody3D" type="CharacterBody3D" node_paths=PackedStringArray("head", "anim", "particules")]
[node name="CharacterBody3D" type="CharacterBody3D" node_paths=PackedStringArray("head", "anim", "particules", "canvas")]
script = ExtResource("1_kjuyr")
SENSI = 0.002
SPEED_PARTICULES = 25.0
@@ -130,6 +131,9 @@ MIN_PARTICULES = 10
head = NodePath("head")
anim = NodePath("AnimationPlayer")
particules = NodePath("MainHugues/GPUParticles3D")
canvas = NodePath("display_song")
[node name="display_song" parent="." instance=ExtResource("2_0o8k8")]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(0.999917, 0, 0.0128802, 0, 1, 0, -0.0128802, 0, 0.999917, 0, 0, 0)