46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://cr73qoqghty0t"]
|
|
|
|
[ext_resource type="Script" uid="uid://bxr7imv4g6b1i" path="res://Droplet.gd" id="1_x6vws"]
|
|
[ext_resource type="Texture2D" uid="uid://mpesfigo2kl8" path="res://droplet1.png" id="2_jnff6"]
|
|
|
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_mwver"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_h365j"]
|
|
radius = 6.0
|
|
|
|
[node name="Droplet" type="Area2D" groups=["droplet"]]
|
|
collision_layer = 2
|
|
script = ExtResource("1_x6vws")
|
|
|
|
[node name="sprite" type="Sprite2D" parent="."]
|
|
self_modulate = Color(1, 0.00999999, 0.00999999, 1)
|
|
material = SubResource("CanvasItemMaterial_mwver")
|
|
position = Vector2(0, -8)
|
|
texture = ExtResource("2_jnff6")
|
|
|
|
[node name="shape" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_h365j")
|
|
|
|
[node name="splash" type="CPUParticles2D" parent="."]
|
|
emitting = false
|
|
amount = 4
|
|
lifetime = 0.5
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
lifetime_randomness = 0.5
|
|
fixed_fps = 30
|
|
local_coords = true
|
|
draw_order = 1
|
|
texture = ExtResource("2_jnff6")
|
|
particle_flag_align_y = true
|
|
direction = Vector2(0, -1)
|
|
spread = 60.0
|
|
gravity = Vector2(0, 50)
|
|
initial_velocity_min = 61.29
|
|
initial_velocity_max = 114.95
|
|
scale_amount_min = 0.25
|
|
scale_amount_max = 0.5
|
|
color = Color(0.998181, 0.131091, 0.0980426, 1)
|
|
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|