|
- [gd_scene load_steps=10 format=2]
-
- [ext_resource path="res://Data/Scripts/Liquid.gd" type="Script" id=1]
- [ext_resource path="res://Data/Graphics/placeholder.png" type="Texture" id=2]
- [ext_resource path="res://Data/Shaders/Liquid.shader" type="Shader" id=3]
- [ext_resource path="res://Data/Sound/Effects/splash.wav" type="AudioStream" id=4]
-
- [sub_resource type="ShaderMaterial" id=1]
- resource_local_to_scene = true
- shader = ExtResource( 3 )
- shader_param/sprite_scale = Vector2( 2.96, 1 )
- shader_param/distortion = 16.265
- shader_param/liquid_color_main = Color( 0, 0, 0, 1 )
- shader_param/liquid_color_surface = Color( 0, 0, 0, 1 )
- shader_param/liquid_surface_thickness = 0.12
- shader_param/wave_amp = 0.25
- shader_param/wave_freq = 1.0
- shader_param/wave_scale = 1.0
-
- [sub_resource type="RectangleShape2D" id=2]
- extents = Vector2( 32, 31 )
-
- [sub_resource type="Curve" id=3]
- _data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.542553, 0 ), 0.0, 0.0, 0, 0 ]
-
- [sub_resource type="CurveTexture" id=4]
- curve = SubResource( 3 )
-
- [sub_resource type="ParticlesMaterial" id=5]
- emission_shape = 2
- emission_box_extents = Vector3( 2, 1, 1 )
- flag_disable_z = true
- direction = Vector3( 0, -1, 0 )
- spread = 86.0
- gravity = Vector3( 0, 98, 0 )
- initial_velocity = 80.0
- orbit_velocity = 0.0
- orbit_velocity_random = 0.0
- scale = 2.0
- scale_curve = SubResource( 4 )
- color = Color( 0.94902, 0.541176, 0.827451, 1 )
-
- [node name="Liquid" type="Sprite"]
- material = SubResource( 1 )
- texture = ExtResource( 2 )
- script = ExtResource( 1 )
-
- [node name="Trigger" type="Area2D" parent="."]
- collision_layer = 8
-
- [node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
- visible = false
- position = Vector2( 0, 1 )
- shape = SubResource( 2 )
-
- [node name="Splash" type="Particles2D" parent="."]
- position = Vector2( 0, -26.9157 )
- emitting = false
- amount = 80
- one_shot = true
- explosiveness = 0.75
- process_material = SubResource( 5 )
-
- [node name="Audio" type="AudioStreamPlayer" parent="."]
- stream = ExtResource( 4 )
- bus = "Effects"
- [connection signal="body_entered" from="Trigger" to="." method="_on_Trigger_body_entered"]
|