This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld47/objects/Meteor.tscn
2020-10-04 23:30:41 +02:00

108 lines
3 KiB
Text

[gd_scene load_steps=13 format=2]
[ext_resource path="res://objects/Meteor.gd" type="Script" id=1]
[sub_resource type="SpatialMaterial" id=7]
vertex_color_use_as_albedo = true
albedo_color = Color( 0.988235, 0.290196, 0.0470588, 1 )
metallic = 1.0
emission_enabled = true
emission = Color( 0.976471, 0.631373, 0.0901961, 1 )
emission_energy = 15.0
emission_operator = 0
emission_on_uv2 = false
[sub_resource type="ParticlesMaterial" id=8]
emission_shape = 2
emission_box_extents = Vector3( 1, 1, 1 )
direction = Vector3( 0.5, 1, 0.5 )
gravity = Vector3( 0, 5, 0 )
initial_velocity = 50.0
initial_velocity_random = 0.2
angular_velocity = 5.0
[sub_resource type="QuadMesh" id=9]
[sub_resource type="SpatialMaterial" id=1]
flags_unshaded = true
vertex_color_use_as_albedo = true
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( 0.431373, 0.392157, 0.32549, 1 )
[sub_resource type="Curve" id=10]
min_value = 180.0
max_value = 360.0
_data = [ Vector2( 0.0316456, -206.182 ), 0.0, 0.0, 0, 0, Vector2( 0.886076, 259.568 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=11]
curve = SubResource( 10 )
[sub_resource type="ParticlesMaterial" id=2]
emission_shape = 1
emission_sphere_radius = 1.5
direction = Vector3( 0, 0, 0 )
spread = 30.0
gravity = Vector3( 0, 0, 0 )
angular_velocity = 10.0
linear_accel = 2.0
angle = 30.0
angle_curve = SubResource( 11 )
[sub_resource type="QuadMesh" id=3]
size = Vector2( 0.2, 0.2 )
[sub_resource type="SpatialMaterial" id=4]
vertex_color_use_as_albedo = true
albedo_color = Color( 0.219608, 0.160784, 0.160784, 1 )
[sub_resource type="SphereMesh" id=5]
material = SubResource( 4 )
[sub_resource type="SphereShape" id=6]
[node name="Meteor" type="KinematicBody"]
script = ExtResource( 1 )
[node name="Explosion" type="Particles" parent="."]
transform = Transform( 0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, 0, 0 )
visible = false
material_override = SubResource( 7 )
cast_shadow = 0
amount = 120
lifetime = 4.0
one_shot = true
explosiveness = 1.0
randomness = 0.44
process_material = SubResource( 8 )
draw_pass_1 = SubResource( 9 )
[node name="Particles" type="Particles" parent="."]
transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 )
material_override = SubResource( 1 )
amount = 150
lifetime = 2.53
speed_scale = 6.92
explosiveness = 0.13
randomness = 1.0
process_material = SubResource( 2 )
draw_pass_1 = SubResource( 3 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0 )
mesh = SubResource( 5 )
material/0 = null
[node name="Timer" type="Timer" parent="."]
wait_time = 3.0
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0 )
shape = SubResource( 6 )
[node name="ExplosionDirection" type="Position3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.40241, 0 )
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]