[gd_scene load_steps=15 format=2] [ext_resource path="res://Scripts/HitBox.gd" type="Script" id=1] [ext_resource path="res://Scenes/Enemy.gd" type="Script" id=2] [ext_resource path="res://Scripts/HurtBox.gd" type="Script" id=3] [ext_resource path="res://Materials/Ball_Mat.tres" type="Material" id=4] [ext_resource path="res://Audio/boom.wav" type="AudioStream" id=7] [ext_resource path="res://Audio/80-s-clap.wav" type="AudioStream" id=8] [ext_resource path="res://Audio/MegaSlap.wav" type="AudioStream" id=9] [sub_resource type="SphereMesh" id=16] [sub_resource type="SphereShape" id=7] [sub_resource type="SphereShape" id=8] [sub_resource type="SphereShape" id=9] [sub_resource type="SpatialMaterial" id=13] params_billboard_mode = 3 particles_anim_h_frames = 1 particles_anim_v_frames = 1 particles_anim_loop = false albedo_color = Color( 0.952941, 0.109804, 0.545098, 1 ) metallic = 0.25 metallic_specular = 0.98 emission_enabled = true emission = Color( 0.501961, 0.152941, 0.462745, 1 ) emission_energy = 4.61 emission_operator = 0 emission_on_uv2 = false refraction_enabled = true refraction_scale = 0.05 refraction_texture_channel = 0 [sub_resource type="SphereMesh" id=14] material = SubResource( 13 ) radius = 0.2 height = 0.4 [sub_resource type="Curve" id=15] max_value = 2.0 _data = [ Vector2( 0.029703, 1.56592 ), 0.0, 0.0, 0, 0, Vector2( 0.995049, 0.656827 ), 0.472208, 0.0, 0, 0 ] [node name="Enemy" type="KinematicBody"] script = ExtResource( 2 ) [node name="MeshInstance" type="MeshInstance" parent="."] mesh = SubResource( 16 ) material/0 = ExtResource( 4 ) [node name="Hurtbox" type="Area" parent="."] transform = Transform( 2.03634, 0, 0, 0, 2.03634, 0, 0, 0, 2.03634, 0, 0, 0 ) script = ExtResource( 3 ) [node name="HeadCollision" type="CollisionShape" parent="Hurtbox"] shape = SubResource( 7 ) [node name="AudioSlap" type="AudioStreamPlayer3D" parent="Hurtbox"] transform = Transform( 0.491077, 0, 0, 0, 0.491077, 0, 0, 0, 0.491077, 0, 0, 0 ) stream = ExtResource( 8 ) attenuation_model = 2 unit_db = 80.0 max_db = 6.0 bus = "SFX" [node name="AudioMegaSlap" type="AudioStreamPlayer3D" parent="Hurtbox"] transform = Transform( 0.491077, 0, 0, 0, 0.491077, 0, 0, 0, 0.491077, 0, 0, 0 ) stream = ExtResource( 9 ) attenuation_model = 2 unit_db = 60.0 max_db = 4.0 pitch_scale = 2.0 bus = "SFX" emission_angle_enabled = true doppler_tracking = 2 [node name="EnemyCollision" type="CollisionShape" parent="."] transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, -0.094023, 0 ) shape = SubResource( 8 ) [node name="HitBox" type="Area" parent="."] transform = Transform( 1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0 ) script = ExtResource( 1 ) hitbox_type = 2 [node name="CollisionShape" type="CollisionShape" parent="HitBox"] shape = SubResource( 9 ) disabled = true [node name="CPUParticles" type="CPUParticles" parent="."] emitting = false amount = 25 lifetime = 2.5 one_shot = true speed_scale = 2.76 explosiveness = 0.18 randomness = 0.19 mesh = SubResource( 14 ) emission_shape = 1 emission_sphere_radius = 1.5 spread = 80.0 gravity = Vector3( 0.1, 0, 0 ) initial_velocity = 1.0 scale_amount_curve = SubResource( 15 ) [node name="DeathTimer" type="Timer" parent="."] wait_time = 3.0 [node name="Explosion" type="AudioStreamPlayer3D" parent="."] stream = ExtResource( 7 ) attenuation_model = 2 unit_db = 80.0 max_db = 6.0 pitch_scale = 1.5 bus = "SFX" attenuation_filter_db = 0.0 [connection signal="timeout" from="DeathTimer" to="." method="_on_DeathTimer_timeout"]