Excalibur icon indicating copy to clipboard operation
Excalibur copied to clipboard

Docs: improve loader documentation

Open KokoDoko opened this issue 1 year ago • 2 comments

Context

The loader documentation shows an example of creating your own loader screen, but this example is so barebones that it's not clear how to use it. The given example does not work as is. It's not clear what users have to add to get it working.

Proposal

Improve this example code so that it works out of the box.

import * as ex from 'excalibur';
export class MyLoader extends ex.DefaultLoader {
  override onUpdate(engine: Engine, elapsedMilliseconds: number): void {
  }
  override onDraw(ctx: CanvasRenderingContext2D) {
  }
  override async onUserAction(): Promise<void> {
  }
  override async onBeforeLoad(): Promise<void> {
  }
  override async onAfterLoad(): Promise<void> {
  }
}

KokoDoko avatar May 24 '24 10:05 KokoDoko

@KokoDoko Totally agree!

eonarheim avatar Jun 01 '24 13:06 eonarheim

This issue hasn't had any recent activity lately and is being marked as stale automatically.

github-actions[bot] avatar Aug 02 '24 00:08 github-actions[bot]