mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Basic laser integration
This commit is contained in:
parent
d16f9b3b9d
commit
4011a7c6f6
15 changed files with 1028 additions and 284 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using Cirno.Scripts.Actors._3D;
|
||||
using Cirno.Scripts.Resources;
|
||||
using Cirno.Scripts.Utils;
|
||||
using Godot;
|
||||
|
|
@ -39,10 +40,13 @@ public class BulletInfo(BulletResource originalBulletResource)
|
|||
|
||||
#region Laser
|
||||
public bool IsLaser { get; set; }
|
||||
public float SpawnDelay { get; set; } = 0.3f; // Delay before beam appears
|
||||
public float PreFireTime { get; set; } = 0.5f; // Time before laser becomes lethal
|
||||
public float LethalTime { get; set; } = 1.5f; // Time laser remains lethal
|
||||
public Color PreFireColor { get; set; } = new Color(1, 0, 0, 0.5f); // Thin red beam
|
||||
public Color LethalColor { get; set; } = new Color(1, 0, 0, 1.0f); // Thicker beam
|
||||
public LaserConfig LaserConfig { get; set; } // For 3D lasers
|
||||
|
||||
// 2D Laser properties (legacy support)
|
||||
public float SpawnDelay { get; set; } = 0.3f;
|
||||
public float PreFireTime { get; set; } = 0.5f;
|
||||
public float LethalTime { get; set; } = 1.5f;
|
||||
public Color PreFireColor { get; set; } = new Color(1, 0, 0, 0.5f);
|
||||
public Color LethalColor { get; set; } = new Color(1, 0, 0, 1.0f);
|
||||
#endregion
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue