yukinovel
Version:
Yukinovel is a simple web visual novel engine.
32 lines (31 loc) • 1.21 kB
TypeScript
import { Scene, DialogueEntry } from '../../types/index.js';
import { Game } from '../Game.js';
export declare class SceneRenderer {
private game;
private backgroundElement;
private characterContainer;
private backgroundVideo;
private originalCharacterSprites;
private currentBackgroundUrl;
private fadeAnimationDuration;
constructor(game: Game, backgroundElement: HTMLElement, characterContainer: HTMLElement);
updateScene(scene: Scene): void;
updateSceneWithFade(scene: Scene, shouldFadeBackground?: boolean, backgroundAnimation?: any): void;
updateCharacterSprites(dialogue: DialogueEntry): void;
setFadeAnimationDuration(duration: number): void;
private updateSceneBackground;
private updateSceneBackgroundWithFade;
private getScaleAwareAnimation;
private fadeOutCharacter;
private fadeInCharacter;
private fadeOutBackground;
private fadeInBackground;
private clearBackground;
private setNewBackground;
private detectBackgroundType;
private setupBackgroundVideo;
private updateCharacters;
private updateCharacterEmotion;
private updateCharacterSprite;
private restoreUnspecifiedCharacterSprites;
}