cutechicken commited on
Commit
5c37876
Β·
verified Β·
1 Parent(s): 10f6358

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +1 -2
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) {