angry-pixel 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -994,6 +994,7 @@ declare class EntityManager {
994
994
  * ```
995
995
  */
996
996
  removeAllEntities(options?: RemoveAllEntitiesOptions): void;
997
+ private addBranch;
997
998
  /**
998
999
  * If the Entity exists, returns TRUE, otherwise it returns FALSE
999
1000
  * @param entity
@@ -3534,7 +3535,9 @@ interface DarknessRenderData extends RenderData {
3534
3535
  * position: new Vector2(10, 10),
3535
3536
  * radius: 32,
3536
3537
  * smooth: true,
3538
+ * steps: 0,
3537
3539
  * intensity: 0.7,
3540
+ * color: "#FF9900",
3538
3541
  * }
3539
3542
  * ```
3540
3543
  */
@@ -3545,8 +3548,12 @@ interface Light {
3545
3548
  radius: number;
3546
3549
  /** If it's TRUE the light will gradually disappear away from the origin point, if FALSE the light will be constant over its entire area. */
3547
3550
  smooth: boolean;
3551
+ /** Number of opacity steps of the smooth light, 0 means a continuous fade */
3552
+ steps: number;
3548
3553
  /** The intensity of the light, between 0 and 1 */
3549
3554
  intensity: number;
3555
+ /** The color of the light glow in hexadecimal, its strength is set by the intensity. No glow if it's not set. */
3556
+ color?: string;
3550
3557
  }
3551
3558
 
3552
3559
  interface SpriteRenderData extends RenderData {
@@ -3772,16 +3779,20 @@ declare class Camera {
3772
3779
  * const lightRenderer = new LightRenderer({
3773
3780
  * radius: 100,
3774
3781
  * smooth: true,
3782
+ * steps: 0,
3775
3783
  * layer: "Default",
3776
- * intensity: 0.8
3784
+ * intensity: 0.8,
3785
+ * color: "#FF9900"
3777
3786
  * });
3778
3787
  * ```
3779
3788
  */
3780
3789
  interface LightRendererOptions {
3781
3790
  radius: number;
3782
3791
  smooth: boolean;
3792
+ steps: number;
3783
3793
  layer: string;
3784
3794
  intensity: number;
3795
+ color: string;
3785
3796
  }
3786
3797
  /**
3787
3798
  * The LightRenderer component is used to render a light effect on the screen.\
@@ -3796,8 +3807,10 @@ interface LightRendererOptions {
3796
3807
  * const lightRenderer = new LightRenderer({
3797
3808
  * radius: 100,
3798
3809
  * smooth: true,
3810
+ * steps: 0,
3799
3811
  * layer: "Default",
3800
- * intensity: 0.8
3812
+ * intensity: 0.8,
3813
+ * color: "#FF9900"
3801
3814
  * });
3802
3815
  * ```
3803
3816
  */
@@ -3806,10 +3819,14 @@ declare class LightRenderer {
3806
3819
  radius: number;
3807
3820
  /** Smooth */
3808
3821
  smooth: boolean;
3822
+ /** Number of opacity steps of the smooth light, 0 means a continuous fade */
3823
+ steps: number;
3809
3824
  /** Darkness render layer */
3810
3825
  layer: string;
3811
3826
  /** Light intensitry between 0 and 1 */
3812
3827
  intensity: number;
3828
+ /** Light glow color in hexadecimal, its strength is set by the intensity. No glow if it's not set */
3829
+ color: string;
3813
3830
  /** @internal */
3814
3831
  _boundingBox: Rectangle;
3815
3832
  /** @internal */