mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 10:35:35 -04:00
b7902bb141
* 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.
27 lines
1.0 KiB
JavaScript
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;
|
|
}; |