diff options
| author | ne_mene <[email protected]> | 2026-04-02 12:13:30 +0200 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-04-02 12:13:30 +0200 |
| commit | c54b9912d0e8cabf1e92c1d5353010736e47364f (patch) | |
| tree | f16460c1dc333fd4534ec8483f928411b59c90be /src/specks.lua | |
| parent | 4112945e25abe208b7ddb3f5ba555f71a786c11e (diff) | |
moved speck properties to convenient place
Diffstat (limited to 'src/specks.lua')
| -rw-r--r-- | src/specks.lua | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/src/specks.lua b/src/specks.lua index ec24378..7249539 100644 --- a/src/specks.lua +++ b/src/specks.lua @@ -79,6 +79,33 @@ function Speck_Sys.new() return self end +SPECK_EXPORTED_ARGS = { + "spawn_shape", + "spawn_amount_min", + "spawn_amount_max", + "spawn_width", + "spawn_height", + "spawn_radius", + "scale_curve", + "scale_start_min", + "scale_start_max", + "scale_end_min", + "scale_end_max", + "forcex", + "forcey", + "initial_velx", + "initial_vely", + "damping", + "spread", + "lifetime_min", + "lifetime_max", + "interval", + "texture_path", + "gradient", + "oneshot", + "bounce", +} + function Speck_Sys:check_bounce(i) if not self.bounce then return false @@ -225,32 +252,6 @@ function Speck_Sys:draw() end end -SPECK_EXPORTED_ARGS = { - "spawn_shape", - "spawn_amount_min", - "spawn_amount_max", - "spawn_width", - "spawn_height", - "spawn_radius", - "scale_curve", - "scale_start_min", - "scale_start_max", - "scale_end_min", - "scale_end_max", - "forcex", - "forcey", - "initial_velx", - "initial_vely", - "damping", - "spread", - "lifetime_min", - "lifetime_max", - "interval", - "texture_path", - "gradient", - "oneshot", - "bounce", -} function export_speck_sys(sys, filename) local exp = {} |
