Files
2D_Game_test/PickupableObjects/Bomb/bomb.tscn

29 lines
1.1 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://dp6umanf58x5t"]
[ext_resource type="Script" path="res://PickupableObjects/Bomb/bomb.gd" id="1_0j4vj"]
[ext_resource type="Texture2D" uid="uid://dmqfqmr16bdqk" path="res://PickupableObjects/Bomb/bomb_icon.png" id="2_c4hvj"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1taf2"]
size = Vector2(20, 34)
[node name="Bomb" type="Node2D"]
script = ExtResource("1_0j4vj")
item_name = "Bomb"
item_description = "Throw and run. Simple and effective."
item_type = 0
item_clip_size = 1
item_ammo = 1
item_texture = ExtResource("2_c4hvj")
[node name="BombPUArea" type="Area2D" parent="."]
[node name="bombImage" type="Sprite2D" parent="BombPUArea"]
texture = ExtResource("2_c4hvj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="BombPUArea"]
position = Vector2(0, 7)
shape = SubResource("RectangleShape2D_1taf2")
[connection signal="body_entered" from="BombPUArea" to="." method="_on_bomb_pu_area_body_entered"]
[connection signal="body_exited" from="BombPUArea" to="." method="_on_bomb_pu_area_body_exited"]