Files
GDevelop/GDevelop.js/types/gdlayer.js
T
Harsimran Singh Virk b7902bb141 Add support for dynamic 2D lights (#1881)
* This adds a **Light** object that can be added on the scene, with a customizable color and radius.
* Add the **Light Obstacle** behavior to the object that must acts as obstacle (walls, etc...) to the lights.
* You can customize the ambient color of the rest of the scene from almost white (useful to show light shadows) to entirely black (useful for horror/exploration games) or any color.
* Use effects on the "Lighting" layer like "Kawase Blur" to achieve soft shadows.
2020-08-17 17:48:26 +02:00

27 lines
1.0 KiB
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdLayer {
constructor(): void;
setName(name: string): void;
getName(): string;
setVisibility(visible: boolean): void;
getVisibility(): boolean;
setLightingLayer(lightingLayer: boolean): void;
isLightingLayer(): boolean;
setFollowBaseLayerCamera(followBaseLayerCamera: boolean): void;
isFollowingBaseLayerCamera(): boolean;
setAmbientLightColor(r: number, g: number, b: number): void;
getAmbientLightColorRed(): number;
getAmbientLightColorGreen(): number;
getAmbientLightColorBlue(): number;
hasEffectNamed(name: string): boolean;
getEffect(name: string): gdEffect;
getEffectAt(index: number): gdEffect;
getEffectPosition(name: string): number;
getEffectsCount(): number;
insertNewEffect(name: string, position: number): gdEffect;
insertEffect(theEffect: gdEffect, position: number): void;
removeEffect(name: string): void;
swapEffects(firstEffectIndex: number, secondEffectIndex: number): void;
delete(): void;
ptr: number;
};