Audio system and rich text
This commit is contained in:
parent
a6f817efbc
commit
68cafff083
161 changed files with 1605 additions and 255 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=21 format=3 uid="uid://b5x35v3w2u8dx"]
|
||||
[gd_scene load_steps=24 format=3 uid="uid://b5x35v3w2u8dx"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_dj7ul"]
|
||||
[ext_resource type="Texture2D" uid="uid://c77o6ba0mw7a3" path="res://assets/sprites/atlases/plants/potato_mine.png" id="2_sneas"]
|
||||
|
|
@ -6,6 +6,9 @@
|
|||
[ext_resource type="AnimationLibrary" uid="uid://bjlbdvr6f0r7e" path="res://resources/animations/plants/potato_mine.res" id="3_7tqmj"]
|
||||
[ext_resource type="Script" uid="uid://c7qfh4py0uulo" path="res://scripts/components/plants/behaviours/PotatomineBehaviour.cs" id="4_twx65"]
|
||||
[ext_resource type="PackedScene" uid="uid://ckanq33rao1ur" path="res://scenes/particles/potato_explosion.tscn" id="5_px4r0"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="7_b1j2f"]
|
||||
[ext_resource type="AudioStream" uid="uid://dltjtpyfr1so0" path="res://assets/audio/sfx/potato_mine.mp3" id="8_3vqdc"]
|
||||
[ext_resource type="AudioStream" uid="uid://b27om1bw1x04e" path="res://assets/audio/sfx/dirt_rise.mp3" id="9_3vqdc"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6uutc"]
|
||||
animation = &"potato_mine/explode"
|
||||
|
|
@ -103,6 +106,12 @@ particles = ExtResource("5_px4r0")
|
|||
position = Vector2(0, 9)
|
||||
shape = SubResource("CircleShape2D_wvns6")
|
||||
|
||||
[node name="ExplosionPlayer" type="Node" parent="ExplosionBox" index="1"]
|
||||
script = ExtResource("7_b1j2f")
|
||||
audioStream = ExtResource("8_3vqdc")
|
||||
channel = "explosion"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[node name="PrimeTimer" type="Timer" parent="." index="5"]
|
||||
wait_time = 15.0
|
||||
one_shot = true
|
||||
|
|
@ -123,5 +132,11 @@ position = Vector2(0, 16.5)
|
|||
shape = SubResource("RectangleShape2D_ti2g4")
|
||||
disabled = true
|
||||
|
||||
[node name="ChannelPlayer" type="Node" parent="." index="8"]
|
||||
script = ExtResource("7_b1j2f")
|
||||
audioStream = ExtResource("9_3vqdc")
|
||||
channel = "plant_rise"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
|
||||
[connection signal="area_entered" from="Detectionbox" to="Behaviour" method="OnAreaEntered"]
|
||||
[connection signal="timeout" from="PrimeTimer" to="Behaviour" method="Prime"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue