MCPcopy Create free account
hub / github.com/alienkitty/space.js / constructor

Method constructor

src/ui/HeaderInfo.js:11–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10export class HeaderInfo extends Interface {
11 constructor() {
12 super('.info');
13
14 this.count = 0;
15 this.time = 0;
16 this.prev = 0;
17 this.fps = 0;
18
19 this.mouse = new Vector2();
20 this.delta = new Vector2();
21 this.lastTime = null;
22 this.lastMouse = new Vector2();
23 this.openColor = null;
24 this.isOpen = false;
25
26 this.init();
27 this.initViews();
28
29 this.addListeners();
30 }
31
32 init() {
33 this.css({

Callers

nothing calls this directly

Calls 3

initMethod · 0.95
initViewsMethod · 0.95
addListenersMethod · 0.95

Tested by

no test coverage detected