Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Engine

The starting point of an Ineka game application.

Hierarchy

  • Engine

Index

Constructors

Properties

_container: HTMLElement

Engine container element.

_options: EngineOptions

Engine's options (merged with defaults in constructor).

_systems: Map<string, OuterNode> = ...

Engine's attached systems.

_time: Time = ...

Engine's time utility.

rootNode: TreeNode

Root node of the engine's graph.

Accessors

  • get container(): HTMLElement

Methods

  • init(): void
  • run(): void
  • step(now: number): void
  • Update loop function, uses notions from this article to fix the timestep for fixed update loops (useful for physics and user interactions).

    Parameters

    • now: number

    Returns void

Generated using TypeDoc