Mostly health
This commit is contained in:
34
scenes/gun.tscn
Normal file
34
scenes/gun.tscn
Normal file
@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://woincqnmbsax"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d0heqigxyqlxk" path="res://sprites/objects/pistol.png" id="1_s3jta"]
|
||||
[ext_resource type="Script" path="res://scenes/gun.gd" id="1_tnui5"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_bfjrk"]
|
||||
radius = 251.149
|
||||
|
||||
[node name="gun" type="Area2D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_tnui5")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-7, 2)
|
||||
shape = SubResource("CircleShape2D_bfjrk")
|
||||
|
||||
[node name="weponPivot" type="Marker2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Pistol" type="Sprite2D" parent="weponPivot"]
|
||||
position = Vector2(15, -2.5)
|
||||
scale = Vector2(0.207111, 0.291078)
|
||||
texture = ExtResource("1_s3jta")
|
||||
|
||||
[node name="shootingPoint" type="Marker2D" parent="weponPivot/Pistol"]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(30.3333, -10.1852)
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.3
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
Reference in New Issue
Block a user