* @ignore
(x, y, w, h)
| 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 |