mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Added lifetime to bullets
This commit is contained in:
parent
be52d0e081
commit
78c319224a
7 changed files with 50 additions and 2 deletions
|
|
@ -13,6 +13,8 @@ namespace Cirno.Scripts.AttackPatterns;
|
|||
public partial class SpiralPattern : AttackPattern
|
||||
{
|
||||
[Export] public PackedScene BulletScene;
|
||||
[Export] private float _bulletLifeTime = 20f;
|
||||
[Export] private bool _destroyOnCollision = false;
|
||||
[Export] private float bulletSpeed = 5f;
|
||||
[Export] private int bulletCount = 16;
|
||||
[Export] private float rotationSpeed = 0f;
|
||||
|
|
@ -89,6 +91,8 @@ public partial class SpiralPattern : AttackPattern
|
|||
{
|
||||
Position = position,
|
||||
Direction = direction,
|
||||
LifeTime = _bulletLifeTime,
|
||||
DestroyOnCollision = _destroyOnCollision,
|
||||
Speed = bulletSpeed,
|
||||
Owner = owner,
|
||||
DamageType = _damageType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue