How to use the excalibur.Vector function in excalibur

To help you get started, we’ve selected a few excalibur examples, based on popular ways it is used in public projects.

github excaliburjs / example-ts-webpack / src / actors / player / player.ts View on Github external
constructor() {
    super({
      pos: new ex.Vector(150, 150),
      width: 25,
      height: 25,
      color: new ex.Color(255, 255, 255)
    });
  }
}

excalibur

Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.

BSD-2-Clause
Latest version published 3 months ago

Package Health Score

87 / 100
Full package analysis