70 lines
2.6 KiB
Plaintext
70 lines
2.6 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://bysgtksvovyur"]
|
|
|
|
[ext_resource type="Script" path="res://src/ingame/sprout.gd" id="1_snma1"]
|
|
[ext_resource type="Resource" uid="uid://nrpcuqveh7io" path="res://data/coin_flower.tres" id="2_amjnn"]
|
|
[ext_resource type="Texture2D" uid="uid://d35y5ckne72qe" path="res://assets/sprout1.png" id="2_ipgad"]
|
|
[ext_resource type="Shader" path="res://assets/shaders/interactivity_outline2.gdshader" id="2_oa2it"]
|
|
[ext_resource type="Texture2D" uid="uid://cwbl0r1e26eja" path="res://assets/drop.png" id="3_kghdv"]
|
|
|
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_rs2qp"]
|
|
properties/0/path = NodePath(".:needs_water")
|
|
properties/0/spawn = true
|
|
properties/0/replication_mode = 2
|
|
properties/1/path = NodePath("NeedWaterDrop:visible")
|
|
properties/1/spawn = true
|
|
properties/1/replication_mode = 2
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_3ul7y"]
|
|
resource_local_to_scene = true
|
|
render_priority = 0
|
|
shader = ExtResource("2_oa2it")
|
|
shader_parameter/width = 1.0
|
|
shader_parameter/outline_color = Color(0, 0, 0, 1)
|
|
shader_parameter/albedo_texture = ExtResource("2_ipgad")
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_0x06e"]
|
|
size = Vector2(0.5, 1)
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_cwbye"]
|
|
radius = 0.3
|
|
height = 0.8
|
|
|
|
[node name="Sprout" type="Node3D" node_paths=PackedStringArray("_need_water_drop", "_production_timer", "_mesh", "_area")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00401986, -0.00383317, 0.00119042)
|
|
script = ExtResource("1_snma1")
|
|
_need_water_drop = NodePath("NeedWaterDrop")
|
|
_production_timer = NodePath("ProductionTimer")
|
|
_mesh = NodePath("Mesh")
|
|
_area = NodePath("Area3D")
|
|
item_component = ExtResource("2_amjnn")
|
|
|
|
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
replication_config = SubResource("SceneReplicationConfig_rs2qp")
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.25, 0)
|
|
material_override = SubResource("ShaderMaterial_3ul7y")
|
|
mesh = SubResource("QuadMesh_0x06e")
|
|
|
|
[node name="NeedWaterDrop" type="Sprite3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
|
|
visible = false
|
|
pixel_size = 0.02
|
|
billboard = 1
|
|
texture_filter = 2
|
|
texture = ExtResource("3_kghdv")
|
|
|
|
[node name="Area3D" type="Area3D" parent="."]
|
|
collision_layer = 8
|
|
collision_mask = 0
|
|
monitoring = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
|
shape = SubResource("CapsuleShape3D_cwbye")
|
|
|
|
[node name="ProductionTimer" type="Timer" parent="."]
|
|
wait_time = 5.0
|
|
one_shot = true
|
|
|
|
[connection signal="timeout" from="ProductionTimer" to="." method="_on_production_timer_timeout"]
|