Options
All
  • Public
  • Public/Protected
  • All
Menu

The manager for the ECS World instance.

see

https://github.com/fritzy/ape-ecs/blob/master/docs/World.md

Hierarchy

  • Engine

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Optional interval

interval: undefined | number

The interval ID for the game loop.

Readonly world

world: World

Methods

start

  • start(fps: number): void
  • Starts the game loop.

    Note: setInterval is used instead of requestAnimationFrame because all logic runs at a fixed rate.

    Parameters

    • fps: number

      The target number of times per second to run the interval at.

    Returns void

stop

  • stop(): void

update

  • update(): void

Generated using TypeDoc