mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 22:12:23 +02:00
Fireparticle added
This commit is contained in:
31
src/Effects/Fire/FireEffect.tscn
Normal file
31
src/Effects/Fire/FireEffect.tscn
Normal file
@@ -0,0 +1,31 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Effects/Fire/fire-particle.png" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="Gradient" id=1]
|
||||
offsets = PoolRealArray( 0.488889, 1 )
|
||||
colors = PoolColorArray( 1, 1, 1, 1, 0, 0, 0, 0 )
|
||||
|
||||
[sub_resource type="GradientTexture" id=2]
|
||||
gradient = SubResource( 1 )
|
||||
|
||||
[sub_resource type="ParticlesMaterial" id=3]
|
||||
lifetime_randomness = 0.12
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 3.0
|
||||
flag_disable_z = true
|
||||
gravity = Vector3( 0, -20, 0 )
|
||||
orbit_velocity = 0.0
|
||||
orbit_velocity_random = 0.0
|
||||
radial_accel = 9.2
|
||||
scale = 0.25
|
||||
scale_random = 0.15
|
||||
color_ramp = SubResource( 2 )
|
||||
hue_variation = 0.18
|
||||
|
||||
[node name="FireEffect" type="Particles2D"]
|
||||
amount = 10
|
||||
lifetime = 1.2
|
||||
speed_scale = 1.3
|
||||
process_material = SubResource( 3 )
|
||||
texture = ExtResource( 1 )
|
||||
Reference in New Issue
Block a user