[gd_scene load_steps=8 format=2]

[ext_resource path="res://src/weapon/gun/OrdinaryGun.cs" type="Script" id=1]
[ext_resource path="res://resource/materlal/Shadow.gdshader" type="Shader" id=2]

[sub_resource type="ShaderMaterial" id=9]
resource_local_to_scene = true
shader = ExtResource( 2 )
shader_param/shadowColor = Color( 1, 1, 1, 1 )
shader_param/schedule = 0.0

[sub_resource type="StreamTexture" id=8]
load_path = "res://.import/gun1.png-f7bc3e27b4b477d47c7353ffb91687ea.stex"

[sub_resource type="Animation" id=3]
resource_name = "Floodlight"
length = 3.0
loop = true
step = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("GunSprite:material:shader_param/shadowColor")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("GunSprite:material:shader_param/schedule")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 1.9, 2.4, 2.5, 3 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.0, 0.0, 1.0, 1.0, 0.0 ]
}

[sub_resource type="Animation" id=4]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("GunSprite:material:shader_param/shadowColor")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("GunSprite:material:shader_param/schedule")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 0.0 ]
}

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7.8, 3.5 )

[node name="Gun" type="Node2D"]
script = ExtResource( 1 )

[node name="GunSprite" type="Sprite" parent="."]
material = SubResource( 9 )
position = Vector2( 0.4, -2.6 )
scale = Vector2( 0.8, 0.8 )
texture = SubResource( 8 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Floodlight"
playback_process_mode = 0
anims/Floodlight = SubResource( 3 )
anims/RESET = SubResource( 4 )

[node name="OriginPoint" type="Position2D" parent="."]
position = Vector2( -3.60001, -1.1 )

[node name="ShellPoint" type="Position2D" parent="."]
position = Vector2( -2.60001, -2.60001 )

[node name="FirePoint" type="Position2D" parent="."]
position = Vector2( 7.39999, -1.1 )

[node name="Area" type="Area2D" parent="."]
position = Vector2( -3.60001, 0.399996 )
collision_layer = 4
collision_mask = 0

[node name="Collision" type="CollisionShape2D" parent="Area"]
position = Vector2( 4.2, -0.199999 )
shape = SubResource( 1 )
disabled = true
