Basic laser integration

This commit is contained in:
MaddoScientisto 2026-01-31 10:23:10 +01:00
commit 4011a7c6f6
15 changed files with 1028 additions and 284 deletions

View file

@ -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
}