Small World Engine API Reference - v0.46.1
    Preparing search index...

    Class AbstractShowcaseAbstract

    Base class for applications built with the SmallWorld engine.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    camera: Camera

    The main camera.

    canvas: HTMLCanvasElement

    The canvas element.

    The engine configuration.

    debug: boolean = false

    Whether debug visualization is enabled.

    interactionManager: InteractionManager

    The interaction manager for gamification / picking.

    renderer: Renderer

    The active renderer.

    scene: Scene

    The current scene.

    Methods

    • A hook method that is called when the canvas element is recreated. By default, it binds the click event to request PointerLock. Inheriting classes can override this if needed.

      Returns void

    • Central keyboard control for all showcasess. Inheriting classes can override this method and call super.onKeyDown(event).

      Parameters

      • event: KeyboardEvent

      Returns void

    • Default update method for examples. Subclasses can override this to implement custom logic.

      Parameters

      • _deltaTime: number

        Time elapsed since the last frame.

      Returns void

    • Helper to wait for all currently loading assets to finish. Useful to call at the end of setupScene.

      Returns Promise<void>