Galactica/content/effects.toml

108 lines
2.5 KiB
TOML
Raw Normal View History

2024-01-05 12:09:59 -08:00
[effect."small explosion"]
sprite = "particle::explosion::small"
lifetime = "inherit"
inherit_velocity = "target"
2024-01-05 18:04:30 -08:00
size = 8.0
2024-01-06 16:01:02 -08:00
size_rng = 1.6
angle_rng = 360
velocity_scale_parent = 1.0
fade = 0.2
fade_rng = 0.1
2024-01-06 16:01:02 -08:00
2024-01-05 18:04:30 -08:00
[effect."large explosion"]
sprite = "particle::explosion::large"
lifetime = "inherit"
inherit_velocity = "target"
size = 25.0
2024-01-06 16:01:02 -08:00
size_rng = 5.0
angle_rng = 360
velocity_scale_parent = 1.0
fade = 0.2
fade_rng = 0.1
2024-01-06 16:01:02 -08:00
2024-01-05 12:09:59 -08:00
[effect."huge explosion"]
sprite = "particle::explosion::huge"
lifetime = "inherit"
inherit_velocity = "target"
2024-01-05 18:04:30 -08:00
size = 50.0
2024-01-06 16:01:02 -08:00
size_rng = 10.0
angle_rng = 360
velocity_scale_parent = 1.0
fade = 0.2
fade_rng = 0.1
[effect."blue spark"]
sprite = "particle::spark::blue"
lifetime = 0.5
lifetime_rng = 0.5
inherit_velocity = "parent"
size = 4.0
size_rng = 2.0
angle_rng = 360
angvel_rng = 0.0
velocity_scale_parent = 1.0
fade = 0.2
fade_rng = 0.1
[effect."yellow spark"]
sprite = "particle::spark::yellow"
lifetime = "inherit"
inherit_velocity = "parent"
size = 4.0
size_rng = 2.0
angle_rng = 360
angvel_rng = 0.0
velocity_scale_parent = 1.0
fade = 0.2
fade_rng = 0.1
[effect."red spark"]
sprite = "particle::spark::red"
lifetime = "inherit"
inherit_velocity = "parent"
size = 4.0
size_rng = 1.0
angle_rng = 360
angvel_rng = 0.0
velocity_scale_parent = 1.0
fade = 0.2
fade_rng = 0.1
2024-01-06 16:01:02 -08:00
2024-01-05 12:09:59 -08:00
2024-01-06 16:01:02 -08:00
# Every effect has a parent, some effects have a target
2024-01-05 19:56:32 -08:00
[effect."blaster impact"]
2024-01-05 12:09:59 -08:00
sprite = "particle::blaster"
2024-01-06 16:01:02 -08:00
lifetime = "inherit" # number in seconds or inherit from sprite
lifetime_rng = 0.0 # Random variation of lifetime (up to this value)
size = 3.0 # sprite size, in game units
size_rng = 1.0 # random size variation
2024-01-07 12:39:03 -08:00
angle = 0.0 # absolute starting angle. always added to parent angle.
angle_rng = 0.0 # Starting angle randomness (up to this value)
2024-01-06 16:01:02 -08:00
# Does not affect velocity, only sprite angle
angvel_rng = 0.0 # Angvel randomness, applied to angvel
angvel = 0.0 # Angular velocity at creation
# Total velocity is sum of parent + target velocities with scale applied
velocity_scale_parent = 0.0 # Multiply velocity by this value
velocity_scale_parent_rng = 0.0 # random variation of scale
velocity_scale_target = 1.0
velocity_scale_target_rng = 1.0
2024-01-07 12:39:03 -08:00
direction_rng = 0.0 # Random variation of travel direction, in degrees, applied to velocity vector (/2 each side?)
2024-01-05 12:09:59 -08:00
fade = 0.2
fade_rng = 0.1
2024-01-05 12:09:59 -08:00
# TODO:
# effect probabilities & variants
# multiple particles in one effect
2024-01-05 18:04:30 -08:00
# document: effect vs particle
2024-01-06 16:01:02 -08:00
# sprite lifetime/fps variation (and effects inherit lifetime later)