Traveller/prefab/packsacks/packsack.tscn
Cold-Mint db0a2fa1ee
Add PickAbleItem.Change item icon and backgrounds.
加入可拾捡物,更换物品图标和背景。
2024-06-16 15:28:16 +08:00

35 lines
1.1 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://cn10fimoem04m"]
[ext_resource type="Script" path="res://scripts/item/Packsack.cs" id="1_slakl"]
[ext_resource type="Texture2D" uid="uid://dvx10dfjctn7t" path="res://sprites/packsack.png" id="2_40jca"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_brthl"]
size = Vector2(21, 29)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xqyue"]
size = Vector2(21, 29)
[node name="RigidBody2D" type="RigidBody2D"]
collision_layer = 8
collision_mask = 38
script = ExtResource("1_slakl")
Id = "packsack"
_minContactInjury = null
_maxContactInjury = null
[node name="DamageArea2D" type="Area2D" parent="."]
collision_layer = 8
collision_mask = 102
[node name="CollisionShape2D" type="CollisionShape2D" parent="DamageArea2D"]
position = Vector2(-2.5, 1.5)
shape = SubResource("RectangleShape2D_brthl")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-2.5, 1.5)
shape = SubResource("RectangleShape2D_xqyue")
[node name="Packsack" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_40jca")