32 lines
975 B
Plaintext
32 lines
975 B
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://c30f23qbcla64"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cswb5do8rrj7q" path="res://pistol/pistol.png" id="1_vcr1c"]
|
|
[ext_resource type="Script" path="res://gun.gd" id="1_xoy1y"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_4brg3"]
|
|
radius = 570.001
|
|
|
|
[node name="Gun" type="Area2D"]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
script = ExtResource("1_xoy1y")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_4brg3")
|
|
|
|
[node name="WeaponPivot" type="Marker2D" parent="."]
|
|
|
|
[node name="Pistol" type="Sprite2D" parent="WeaponPivot"]
|
|
position = Vector2(102, 0)
|
|
texture = ExtResource("1_vcr1c")
|
|
|
|
[node name="ShootingPoint" type="Marker2D" parent="WeaponPivot/Pistol"]
|
|
unique_name_in_owner = true
|
|
position = Vector2(25, -11)
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.3
|
|
autostart = true
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|