MCPcopy Create free account
hub / github.com/esengine/esengine / start

Function start

examples/core-demos/src/demos/DemoBase.ts:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 }
40
41 public start() {
42 if (this.isRunning) return;
43 this.isRunning = true;
44 this.lastTime = performance.now();
45
46 // 设置当前场景到Core
47 Core.setScene(this.scene);
48
49 this.scene.begin();
50 this.loop();
51 }
52
53 public stop() {
54 this.isRunning = false;

Callers

nothing calls this directly

Calls 4

nowMethod · 0.80
setSceneMethod · 0.65
beginMethod · 0.45
loopMethod · 0.45

Tested by

no test coverage detected