mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 00:35:55 +00:00
Added resources to bullets
This commit is contained in:
parent
78c319224a
commit
28671c098b
11 changed files with 329 additions and 24 deletions
|
|
@ -13,6 +13,7 @@ public partial class BulletResource : Resource
|
|||
public PackedScene BulletScene { get; set; }
|
||||
[Export] public PackedScene DestructionParticlesScene { get; set; }
|
||||
[Export] public float BulletSpeed = 100f;
|
||||
[Export] public Vector2 Direction = Vector2.Right;
|
||||
[Export] public float BulletDamage = 1;
|
||||
[Export] public float LifeTime = 10f;
|
||||
[Export] public bool DestroyOnCollision = true;
|
||||
|
|
@ -28,7 +29,7 @@ public partial class BulletResource : Resource
|
|||
return new BulletInfo()
|
||||
{
|
||||
Position = position,
|
||||
Direction = Vector2.Right,
|
||||
Direction = Direction,
|
||||
Speed = BulletSpeed,
|
||||
Owner = Owner,
|
||||
DamageType = DamageType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue