@al-engine/loading
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Al engine

Scale

This is module with generic Loading screen for Al engine.

  // position is a position of simple animation
  // {x: 1, y: 1} - will be top left corner
  // {x: options.width - 7, y: 1} - bottom right corner
  // asset is a instance of Asset class, while it loading animation is shown
  const loading = new Loading(position, asset,
    // callback to hide loading animation
    () => {
      this.removeChild(loading);
      this.addChild(this.menu);
    }
  );

Readme

Keywords

none

Package Sidebar

Install

npm i @al-engine/loading

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

17.5 kB

Total Files

12

Last publish

Collaborators

  • sasha-z