mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-07 04:35:54 +00:00
Explosion sprites and lifetime
This commit is contained in:
parent
2a07a31678
commit
a0b5cedff9
10 changed files with 102 additions and 18 deletions
|
|
@ -15,6 +15,7 @@ public partial class BulletResource : Resource
|
|||
[Export] public float BulletSpeed = 100f;
|
||||
[Export] public float BulletDamage = 1;
|
||||
[Export] public float LifeTime = 10f;
|
||||
[Export] public bool DestroyOnCollision = true;
|
||||
[Export] public BulletOwner Owner = BulletOwner.None;
|
||||
[Export] public DamageType DamageType = DamageType.Neutral;
|
||||
|
||||
|
|
@ -38,6 +39,7 @@ public partial class BulletResource : Resource
|
|||
RotationOffset = rotationOffset,
|
||||
Modifier = Modifier,
|
||||
LifeTime = LifeTime,
|
||||
DestroyOnCollision = DestroyOnCollision,
|
||||
DestructionParticlesScene = DestructionParticlesScene,
|
||||
TimeModifiers = TimeModifiers.Select(x => x).ToList()
|
||||
// TimeModifiers = TimeModifiers?.Where(mod => mod is TimeModifier).Cast<TimeModifier>().Select(m => new ModifierWrapper()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue