Capacitors and parallax

This commit is contained in:
Marco 2025-02-21 16:27:57 +01:00
commit 3670da9719
29 changed files with 705 additions and 57 deletions

View file

@ -16,7 +16,7 @@ public partial class BulletEmitter : Node2D, IActivable
[Export] public float Spread { get; set; } = 0f;
[Export] public float Rotation { get; set; } = 0f;
[Export] public float EmissionRotation { get; set; } = 0f;
private BulletSpawner _bulletSpawner;
@ -32,12 +32,12 @@ public partial class BulletEmitter : Node2D, IActivable
case ActivationType.Toggle:
break;
case ActivationType.Enable:
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, Rotation));
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, EmissionRotation));
break;
case ActivationType.Disable:
break;
case ActivationType.Use:
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, Rotation));
_bulletSpawner.SpawnBullet(BulletResource.MakeBullet(this.GlobalPosition, 1, Spread, EmissionRotation));
break;
case ActivationType.Destroy:
break;