MCPcopy Create free account
hub / github.com/melonjs/melonJS / constructor

Method constructor

packages/melonjs/src/loader/loadingscreen.js:21–34  ·  view source on GitHub ↗

* @ignore

(x, y, w, h)

Source from the content-addressed store, hash-verified

19 * @ignore
20 */
21 constructor(x, y, w, h) {
22 super(x, y, w, h);
23
24 this.barHeight = h;
25 this.anchorPoint.set(0, 0);
26
27 on(LOADER_PROGRESS, this.onProgressUpdate, this);
28 on(VIEWPORT_ONRESIZE, this.resize, this);
29
30 this.anchorPoint.set(0, 0);
31
32 // store current progress
33 this.progress = 0;
34 }
35
36 /**
37 * make sure the screen is refreshed every frame

Callers

nothing calls this directly

Calls 2

onFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected