TinyAdventure/objects/grass.tscn

36 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2024-11-01 18:09:36 +01:00
[gd_scene load_steps=5 format=3 uid="uid://bwt4hbinrod8q"]
[ext_resource type="Script" path="res://objects/grass.gd" id="1_sc4bm"]
[ext_resource type="PackedScene" uid="uid://c5x71uagdcocv" path="res://assets/3rdparty/kenney/survival-kit/Models/grassLarge.glb" id="2_4frmr"]
2024-11-01 18:09:36 +01:00
[ext_resource type="PackedScene" uid="uid://br6po50kfianv" path="res://objects/item_spawner.tscn" id="3_cuts0"]
[sub_resource type="BoxShape3D" id="BoxShape3D_4etwi"]
size = Vector3(0.5, 0.483398, 0.5)
[node name="Grass" type="Node3D"]
script = ExtResource("1_sc4bm")
is_chopped = false
[node name="grassLarge" parent="." instance=ExtResource("2_4frmr")]
unique_name_in_owner = true
2024-11-01 18:07:23 +01:00
transform = Transform3D(1, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0)
[node name="Hitbox" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 8
monitorable = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hitbox"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0167542, 0.244228, 0)
shape = SubResource("BoxShape3D_4etwi")
[node name="GrowTimer" type="Timer" parent="."]
unique_name_in_owner = true
2024-11-17 22:00:24 +01:00
wait_time = 2.20674
2024-11-01 18:09:36 +01:00
[node name="ItemSpawner" parent="." instance=ExtResource("3_cuts0")]
2024-11-01 18:07:23 +01:00
unique_name_in_owner = true
[connection signal="area_shape_entered" from="Hitbox" to="." method="_on_hitbox_area_shape_entered"]
[connection signal="timeout" from="GrowTimer" to="." method="_on_grow_timer_timeout"]