Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import * as THREE from 'three';
|
2 |
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
3 |
import { PointerLockControls } from 'three/addons/controls/PointerLockControls.js';
|
|
|
4 |
|
5 |
// κ²μ μμ
|
6 |
const GAME_DURATION = 180;
|
@@ -1810,8 +1811,6 @@ class Game {
|
|
1810 |
}
|
1811 |
this.stats.begin();
|
1812 |
|
1813 |
-
this.animationFrameId = requestAnimationFrame(() => this.animate())
|
1814 |
-
|
1815 |
this.animationFrameId = requestAnimationFrame(() => this.animate());
|
1816 |
// κ²μμ΄ μμλμ§ μμμΌλ©΄ λ λλ§λ§ μν
|
1817 |
if (!this.isStarted) {
|
|
|
1 |
import * as THREE from 'three';
|
2 |
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
3 |
import { PointerLockControls } from 'three/addons/controls/PointerLockControls.js';
|
4 |
+
import Stats from 'three/examples/jsm/libs/stats.module.js';
|
5 |
|
6 |
// κ²μ μμ
|
7 |
const GAME_DURATION = 180;
|
|
|
1811 |
}
|
1812 |
this.stats.begin();
|
1813 |
|
|
|
|
|
1814 |
this.animationFrameId = requestAnimationFrame(() => this.animate());
|
1815 |
// κ²μμ΄ μμλμ§ μμμΌλ©΄ λ λλ§λ§ μν
|
1816 |
if (!this.isStarted) {
|