working on items and inventory
This commit is contained in:
28
PickupableObjects/GluePatch/GluePatch.tscn
Normal file
28
PickupableObjects/GluePatch/GluePatch.tscn
Normal file
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://r0424mbc1jx8"]
|
||||
|
||||
[ext_resource type="Script" path="res://PickupableObjects/GluePatch/GluePatch.gd" id="1_j7usm"]
|
||||
[ext_resource type="Texture2D" uid="uid://t7jsxx1bf6dl" path="res://PickupableObjects/GluePatch/glue_patch.png" id="2_aflxg"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dpesl"]
|
||||
size = Vector2(17, 25)
|
||||
|
||||
[node name="GluePatch" type="Node2D"]
|
||||
script = ExtResource("1_j7usm")
|
||||
item_name = "Glue Patch"
|
||||
item_description = "Lay down to slow down enemies!"
|
||||
item_type = 0
|
||||
item_clip_size = 3
|
||||
item_ammo = 3
|
||||
item_texture = ExtResource("2_aflxg")
|
||||
|
||||
[node name="GluePatchPUArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="GluePatchImage" type="Sprite2D" parent="GluePatchPUArea"]
|
||||
texture = ExtResource("2_aflxg")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="GluePatchPUArea"]
|
||||
position = Vector2(0.5, 3.5)
|
||||
shape = SubResource("RectangleShape2D_dpesl")
|
||||
|
||||
[connection signal="body_entered" from="GluePatchPUArea" to="." method="_on_glue_patch_pu_area_body_entered"]
|
||||
[connection signal="body_exited" from="GluePatchPUArea" to="." method="_on_glue_patch_pu_area_body_exited"]
|
Reference in New Issue
Block a user