particle lifetime consts, and confusion msg fixes
This commit is contained in:
parent
22d90a46b4
commit
dd91a8cca7
5 changed files with 26 additions and 10 deletions
|
|
@ -2,7 +2,11 @@ use super::{ParticleLifetime, Position, Renderable, Rltk};
|
|||
use rltk::RGB;
|
||||
use specs::prelude::*;
|
||||
|
||||
// For things which will happen frequently - i.e. attacking.
|
||||
pub const DEFAULT_PARTICLE_LIFETIME: f32 = 150.0;
|
||||
// For exceptional things, like large AOEs, to make sure the
|
||||
// player can actually see what's being impacted - i.e. fireball.
|
||||
pub const LONG_PARTICLE_LIFETIME: f32 = 300.0;
|
||||
|
||||
/// Runs each tick, deleting particles who are past their expiry.
|
||||
// Should make an addition to this to also spawn delayed particles,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue