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/Fire.tscn

57 lines
1.7 KiB
Text

[gd_scene load_steps=6 format=2]
[ext_resource path="res://objects/Fire.gd" type="Script" id=1]
[sub_resource type="SpatialMaterial" id=1]
flags_unshaded = true
flags_albedo_tex_force_srgb = 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( 1, 0.533333, 0.0352941, 1 )
[sub_resource type="ParticlesMaterial" id=2]
emission_shape = 1
emission_sphere_radius = 1.0
spread = 0.0
gravity = Vector3( 0, 0, 0 )
angular_velocity = 30.0
angular_velocity_random = 1.0
linear_accel = 4.0
color = Color( 0.937255, 0.133333, 0.133333, 1 )
[sub_resource type="QuadMesh" id=3]
[sub_resource type="BoxShape" id=4]
extents = Vector3( 0.4, 2.1, 1 )
[node name="Fire" type="Spatial"]
script = ExtResource( 1 )
[node name="Particles" type="Particles" parent="."]
transform = Transform( -0.1, 1.50996e-07, 0, -1.50996e-08, -1, 0, 0, 0, 0.1, 0, 1.12539, 0 )
material_override = SubResource( 1 )
cast_shadow = 0
amount = 48
speed_scale = 6.0
randomness = 1.0
process_material = SubResource( 2 )
draw_pass_1 = SubResource( 3 )
[node name="Area" type="Area" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="Area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.1, 0 )
shape = SubResource( 4 )
[node name="Light" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
light_color = Color( 1, 0.533333, 0.0352941, 1 )
light_energy = 4.0
light_specular = 1.0
omni_range = 6.0
omni_attenuation = 4.0
[connection signal="body_entered" from="Area" to="." method="_on_Area_body_entered"]
[connection signal="body_exited" from="Area" to="." method="_on_Area_body_exited"]