mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-07 21:45:54 +00:00
Simple knockback implementation
This commit is contained in:
parent
0146de8ab5
commit
78fe44e6ec
10 changed files with 96 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue