70 lines
1.8 KiB
Text
70 lines
1.8 KiB
Text
[gd_scene load_steps=11 format=2]
|
|
|
|
[ext_resource path="res://objects/Projectile.gd" type="Script" id=1]
|
|
[ext_resource path="res://objects/Projectile_mat.tres" type="Material" id=2]
|
|
[ext_resource path="res://objects/Projectile_corona_shader.tres" type="Material" id=3]
|
|
[ext_resource path="res://sounds/193429__unfa__projectile-hit.wav" type="AudioStream" id=4]
|
|
|
|
[sub_resource type="SphereMesh" id=1]
|
|
material = ExtResource( 2 )
|
|
radius = 0.1
|
|
height = 0.2
|
|
radial_segments = 8
|
|
rings = 8
|
|
|
|
[sub_resource type="QuadMesh" id=2]
|
|
material = ExtResource( 3 )
|
|
size = Vector2( 0.4, 0.4 )
|
|
|
|
[sub_resource type="SpatialMaterial" id=3]
|
|
flags_unshaded = true
|
|
vertex_color_use_as_albedo = true
|
|
params_specular_mode = 4
|
|
params_blend_mode = 1
|
|
params_billboard_mode = 3
|
|
particles_anim_h_frames = 1
|
|
particles_anim_v_frames = 1
|
|
particles_anim_loop = false
|
|
albedo_color = Color( 1, 0, 0.313726, 1 )
|
|
|
|
[sub_resource type="ParticlesMaterial" id=4]
|
|
emission_shape = 1
|
|
emission_sphere_radius = 0.1
|
|
spread = 0.0
|
|
gravity = Vector3( 0, 0, 0 )
|
|
scale = 0.05
|
|
|
|
[sub_resource type="QuadMesh" id=5]
|
|
|
|
[sub_resource type="SphereShape" id=6]
|
|
radius = 0.1
|
|
|
|
[node name="Projectile" type="KinematicBody"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="MeshInstance" type="MeshInstance" parent="."]
|
|
mesh = SubResource( 1 )
|
|
material/0 = null
|
|
|
|
[node name="MeshInstance2" type="MeshInstance" parent="MeshInstance"]
|
|
mesh = SubResource( 2 )
|
|
material/0 = null
|
|
|
|
[node name="Particles" type="Particles" parent="."]
|
|
material_override = SubResource( 3 )
|
|
cast_shadow = 0
|
|
amount = 32
|
|
lifetime = 2.4
|
|
speed_scale = 25.0
|
|
randomness = 1.0
|
|
local_coords = false
|
|
process_material = SubResource( 4 )
|
|
draw_pass_1 = SubResource( 5 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
|
shape = SubResource( 6 )
|
|
|
|
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
|
|
stream = ExtResource( 4 )
|
|
unit_db = 15.0
|
|
max_db = 6.0
|