fancy particle effects

This commit is contained in:
Llywelwyn 2023-08-21 22:43:19 +01:00
parent 5f23822f62
commit 366c5d6543
8 changed files with 189 additions and 79 deletions

View file

@ -420,12 +420,22 @@ pub struct SpawnParticleLine {
}
#[derive(Component, Serialize, Deserialize, Clone)]
pub struct SpawnParticleBurst {
pub struct SpawnParticleSimple {
pub glyph: rltk::FontCharType,
pub colour: RGB,
pub lifetime_ms: f32,
}
#[derive(Component, Serialize, Deserialize, Clone)]
pub struct SpawnParticleBurst {
pub glyph: rltk::FontCharType,
pub colour: RGB,
pub lerp: RGB,
pub lifetime_ms: f32,
pub trail_colour: RGB,
pub trail_lifetime_ms: f32,
}
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
pub struct Destructible {}