-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgun.tscn
33 lines (24 loc) · 1.03 KB
/
gun.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[gd_scene load_steps=4 format=3 uid="uid://cbaehdrcw63jc"]
[ext_resource type="Script" path="res://gun.gd" id="1_nesuj"]
[ext_resource type="Texture2D" uid="uid://cswb5do8rrj7q" path="res://pistol/pistol.png" id="2_exdul"]
[sub_resource type="CircleShape2D" id="CircleShape2D_plw3b"]
radius = 320.0
[node name="Gun" type="Area2D"]
collision_layer = 0
collision_mask = 2
script = ExtResource("1_nesuj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_plw3b")
debug_color = Color(0, 0.643137, 0.32549, 0.243137)
[node name="WeaponPivot" type="Marker2D" parent="."]
position = Vector2(12, 0)
[node name="Pistol" type="Sprite2D" parent="WeaponPivot"]
position = Vector2(82, 0)
texture = ExtResource("2_exdul")
[node name="ShootingPoint" type="Marker2D" parent="WeaponPivot/Pistol"]
unique_name_in_owner = true
position = Vector2(25, -10)
[node name="Timer" type="Timer" parent="."]
wait_time = 0.3
autostart = true
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]