Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • World

Index

Constructors

constructor

  • new World(container: LayoutBase, width: number, height: number): World

Properties

Private container

container: LayoutBase

Private entities

entities: Entity[]

Private gravity

gravity: Vector2

Private height

height: number

Private previous

previous: number

Private width

width: number

Methods

addEntity

  • addEntity(entity: Entity): void

destroy

  • destroy(): void

getContainer

  • getContainer(): LayoutBase

getGravity

getHeight

  • getHeight(): number

getWidth

  • getWidth(): number

isCollidingWithOther

removeEntity

  • removeEntity(entity: Entity): void

Private render

  • render(): void

setGravity

  • setGravity(gravity: Vector2): void

tick

  • tick(): void

Private update

  • update(deltaTime: number): void

Generated using TypeDoc