32 lines
976 B
Plaintext
32 lines
976 B
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://daagdf86t4bjn"]
|
|
|
|
[ext_resource type="Script" uid="uid://dl331nhv6dm0l" path="res://gun.gd" id="1_dk5gl"]
|
|
[ext_resource type="Texture2D" uid="uid://cswb5do8rrj7q" path="res://pistol/pistol.png" id="1_vk1bi"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_dk5gl"]
|
|
radius = 356.051
|
|
|
|
[node name="Gun" type="Area2D"]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
script = ExtResource("1_dk5gl")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_dk5gl")
|
|
|
|
[node name="Pivot" type="Marker2D" parent="."]
|
|
|
|
[node name="Pistol" type="Sprite2D" parent="Pivot"]
|
|
position = Vector2(85, 0)
|
|
texture = ExtResource("1_vk1bi")
|
|
|
|
[node name="Barrel" type="Marker2D" parent="Pivot/Pistol"]
|
|
unique_name_in_owner = true
|
|
position = Vector2(25, -11)
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.33
|
|
autostart = true
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|