[gd_scene format=3 uid="uid://bwxxdrdvo3le0"]

[ext_resource type="Script" uid="uid://c6oorp45vpqpc" path="res://scenes/bullet.gd" id="1_v8qja"]
[ext_resource type="Shader" uid="uid://dfywtah53il1m" path="res://shaders/player_hit.gdshader" id="2_eoqba"]
[ext_resource type="Texture2D" uid="uid://bnc77g20gb20h" path="res://sprites/david-head.png" id="2_y25gk"]
[ext_resource type="Texture2D" uid="uid://dwd6pycecukqb" path="res://sprites/david-headshot.png" id="3_l5glv"]
[ext_resource type="AudioStream" uid="uid://cy01lrl2la6bn" path="res://sounds/splat_alt.wav" id="5_qncy5"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_qncy5"]
shader = ExtResource("2_eoqba")
shader_parameter/toggle = 0.0

[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_eoqba"]
particle_flag_disable_z = true
gravity = Vector3(0, 98, 0)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_2b2rl"]
size = Vector2(12, 11)

[node name="Bullet" type="Area2D" unique_id=1850257077]
z_index = -1
script = ExtResource("1_v8qja")

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=29933687]
material = SubResource("ShaderMaterial_qncy5")
position = Vector2(1.1920929e-07, 2.9802322e-07)
scale = Vector2(1.1111112, 1.1764706)
texture = ExtResource("2_y25gk")
hframes = 3

[node name="GPUParticles2D" type="GPUParticles2D" parent="Sprite2D" unique_id=1840545252]
position = Vector2(-1.0728836e-07, -2.5331974e-07)
amount = 2
sub_emitter = NodePath(".")
texture = ExtResource("3_l5glv")
lifetime = 0.08
explosiveness = 0.21
process_material = SubResource("ParticleProcessMaterial_eoqba")

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1297459172]
position = Vector2(0, -0.5)
shape = SubResource("RectangleShape2D_2b2rl")

[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="." unique_id=210965331]

[node name="Splat" type="AudioStreamPlayer2D" parent="." unique_id=950499235]
stream = ExtResource("5_qncy5")
volume_db = -1.425

[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
