Simple knockback implementation

This commit is contained in:
Marco 2025-05-06 16:06:00 +02:00
commit 78fe44e6ec
10 changed files with 96 additions and 8 deletions

View file

@ -16,6 +16,7 @@ public partial class BulletResource : Resource
[Export] public float BulletSpeed = 100f;
[Export] public Vector2 Direction = Vector2.Right;
[Export] public float BulletDamage = 1;
[Export] public float Knockback = 1;
[Export] public float LifeTime = 10f;
[Export] public bool DestroyOnCollision = true;
[Export] public BulletOwner Owner = BulletOwner.None;
@ -40,6 +41,7 @@ public partial class BulletResource : Resource
Owner = Owner,
DamageType = DamageType,
Damage = BulletDamage,
Knockback = Knockback,
BulletCount = count,
Spread = spread,
BulletScene = BulletScene,