59 lines
2.1 KiB
Plaintext
59 lines
2.1 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://d14udc4fo4gqq"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cgqntk262jowi" path="res://Interactions/Scavenging/scavengeable.tscn" id="1_cywxe"]
|
|
[ext_resource type="PackedScene" uid="uid://bqibe7ha6r5ls" path="res://Interactions/Interactable/interactable.tscn" id="2_7ix40"]
|
|
[ext_resource type="Script" path="res://Items/Foods/Fruits/Orange.gd" id="2_ho0dk"]
|
|
[ext_resource type="Texture2D" uid="uid://d1twvax6746du" path="res://Objects/Tutorial/Barrel/OrangeBarrel.png" id="3_84d73"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_cuha2"]
|
|
radius = 85.0941
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_41m44"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_84d73")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="OrangeBarrel" type="StaticBody2D"]
|
|
|
|
[node name="Scavengeable" parent="." instance=ExtResource("1_cywxe")]
|
|
dropItemClasses = Array[Resource]([ExtResource("2_ho0dk")])
|
|
dropItemProbabilities = Array[int]([1])
|
|
xpRewards = Array[int]([3])
|
|
dropItemLocationOffsets = Array[Vector2]([Vector2(50, 20), Vector2(0, 25), Vector2(-50, 20)])
|
|
|
|
[node name="CollisionShape2D" parent="Scavengeable/InteractionArea" index="0"]
|
|
position = Vector2(0, -50)
|
|
shape = SubResource("CircleShape2D_cuha2")
|
|
|
|
[node name="ScavengeBar" parent="Scavengeable" index="1"]
|
|
offset_left = -64.0
|
|
offset_top = -157.0
|
|
offset_right = 66.0
|
|
offset_bottom = -142.0
|
|
|
|
[node name="Interactable" parent="." instance=ExtResource("2_7ix40")]
|
|
|
|
[node name="Panel" parent="Interactable" index="1"]
|
|
offset_left = -45.0
|
|
offset_top = -106.0
|
|
offset_right = 42.0
|
|
offset_bottom = 1.0
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(0, -57)
|
|
sprite_frames = SubResource("SpriteFrames_41m44")
|
|
|
|
[node name="CollisionShape2D" type="CollisionPolygon2D" parent="."]
|
|
position = Vector2(0, -35)
|
|
polygon = PackedVector2Array(-10, 34, -26, 28, -39, 19, -41, 10, -37, 5, -23, 0, -2, 0, 20, -1, 35, 1, 39, 7, 38, 17, 29, 25, 15, 32, 0, 35)
|
|
|
|
[editable path="Scavengeable"]
|
|
[editable path="Interactable"]
|
|
[editable path="Interactable/ActionMenu"]
|