mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-05 23:25:54 +00:00
Bullet overrides
This commit is contained in:
parent
eeaf1526f8
commit
533912ba02
6 changed files with 121 additions and 18 deletions
|
|
@ -12,9 +12,9 @@ public partial class LaserPattern : SpiralPattern
|
|||
[ExportGroup("Laser")][Export] public Color PreFireColor { get; set; } = new Color(1, 0, 0, 0.5f); // Thin red beam
|
||||
[ExportGroup("Laser")][Export] public Color LethalColor { get; set; } = new Color(1, 0, 0, 1.0f); // Thicker beam
|
||||
|
||||
protected override BulletInfo MakeBullet(Vector2 position, Vector2 direction, float angleOffset)
|
||||
protected override BulletInfo MakeBullet(Vector2 position, int count = 1, float spread = 0f, float rotationOffset = 0f)
|
||||
{
|
||||
var bf = base.MakeBullet(position, direction, angleOffset);
|
||||
var bf = base.MakeBullet(position, count, spread, rotationOffset);
|
||||
|
||||
bf.IsLaser = true;
|
||||
bf.PreFireTime = PreFireTime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue