2023-01-08 22:16:01 +00:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://v7bv81krh12e"]
|
2023-01-08 08:22:44 +00:00
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bwwpi0itor6cw" path="res://island/PineappleMesh.tscn" id="1_ndmmp"]
|
2023-01-08 22:16:01 +00:00
|
|
|
[ext_resource type="Script" path="res://island/Pineapple.gd" id="1_sbec5"]
|
2023-01-08 12:47:44 +00:00
|
|
|
[ext_resource type="AudioStream" uid="uid://lkftwgdun745" path="res://assets/pop.wav" id="3_b3ttd"]
|
|
|
|
[ext_resource type="Script" path="res://island/Pop.gd" id="4_rn5e2"]
|
2023-01-08 20:27:26 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cvou86mnmtloe" path="res://island/MoveTowardsPlayer.tscn" id="4_xnsun"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://ci0hy0d4d1476" path="res://island/CollectibleByPlayer.tscn" id="5_yps0c"]
|
2023-01-08 22:16:01 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bj4d3a0jxgvpu" path="res://island/CanSplash.tscn" id="7_3mgie"]
|
2023-01-08 08:22:44 +00:00
|
|
|
|
2023-01-08 22:19:04 +00:00
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_e5jtb"]
|
2023-01-08 08:22:44 +00:00
|
|
|
height = 0.9
|
|
|
|
radius = 0.3
|
|
|
|
|
|
|
|
[node name="Pineapple" type="RigidBody3D"]
|
|
|
|
collision_layer = 2
|
2023-01-08 12:47:44 +00:00
|
|
|
collision_mask = 5
|
2023-01-08 08:22:44 +00:00
|
|
|
lock_rotation = true
|
2023-01-08 09:01:13 +00:00
|
|
|
linear_damp = 1.0
|
2023-01-08 22:16:01 +00:00
|
|
|
script = ExtResource("1_sbec5")
|
2023-01-08 08:22:44 +00:00
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape3D" parent="."]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.45, 0)
|
2023-01-08 22:19:04 +00:00
|
|
|
shape = SubResource("CylinderShape3D_e5jtb")
|
2023-01-08 08:22:44 +00:00
|
|
|
|
|
|
|
[node name="PineappleMesh" parent="." instance=ExtResource("1_ndmmp")]
|
|
|
|
|
2023-01-08 20:27:26 +00:00
|
|
|
[node name="PopSound" type="AudioStreamPlayer3D" parent="."]
|
2023-01-08 12:47:44 +00:00
|
|
|
stream = ExtResource("3_b3ttd")
|
|
|
|
attenuation_filter_cutoff_hz = 20500.0
|
|
|
|
script = ExtResource("4_rn5e2")
|
|
|
|
|
2023-01-08 20:27:26 +00:00
|
|
|
[node name="MoveTowardsPlayer" parent="." instance=ExtResource("4_xnsun")]
|
|
|
|
target_path = NodePath("..")
|
2023-01-08 12:47:44 +00:00
|
|
|
|
2023-01-08 20:27:26 +00:00
|
|
|
[node name="CollectibleByPlayer" parent="." instance=ExtResource("5_yps0c")]
|
|
|
|
target_path = NodePath("..")
|
2023-01-08 08:22:44 +00:00
|
|
|
|
2023-01-08 22:16:01 +00:00
|
|
|
[node name="CanSplash" parent="." instance=ExtResource("7_3mgie")]
|
2023-01-08 20:37:58 +00:00
|
|
|
|
2023-01-08 23:36:53 +00:00
|
|
|
[connection signal="collected" from="CollectibleByPlayer" to="." method="_on_collectible_by_player_collected"]
|
|
|
|
|
2023-01-08 20:27:26 +00:00
|
|
|
[editable path="MoveTowardsPlayer"]
|
|
|
|
[editable path="CollectibleByPlayer"]
|