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

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +0 -10
game.js CHANGED
@@ -1,7 +1,6 @@
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;
@@ -848,13 +847,6 @@ class Particle {
848
  // Game 클래슀
849
  class Game {
850
  constructor() {
851
- // Stats μ΄ˆκΈ°ν™” μΆ”κ°€
852
- this.stats = new Stats();
853
- this.stats.showPanel(0); // 0: fps, 1: ms, 2: mb, 3+: custom
854
- this.stats.dom.style.position = 'absolute';
855
- this.stats.dom.style.left = '0px';
856
- this.stats.dom.style.top = '0px';
857
- document.body.appendChild(this.stats.dom);
858
  // κ²Œμž„ μ‹œμž‘ μ—¬λΆ€λ₯Ό μΆ”μ ν•˜λŠ” ν”Œλž˜κ·Έ μΆ”κ°€
859
  this.isStarted = false;
860
  // μ˜€λ””μ˜€ κ΄€λ ¨ 속성 μΆ”κ°€
@@ -1809,7 +1801,6 @@ class Game {
1809
  }
1810
  return;
1811
  }
1812
- this.stats.begin();
1813
 
1814
  this.animationFrameId = requestAnimationFrame(() => this.animate());
1815
  // κ²Œμž„μ΄ μ‹œμž‘λ˜μ§€ μ•Šμ•˜μœΌλ©΄ λ Œλ”λ§λ§Œ μˆ˜ν–‰
@@ -1842,7 +1833,6 @@ class Game {
1842
  }
1843
 
1844
  this.renderer.render(this.scene, this.camera);
1845
- this.stats.end();
1846
  }
1847
  }
1848
 
 
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;
 
847
  // Game 클래슀
848
  class Game {
849
  constructor() {
 
 
 
 
 
 
 
850
  // κ²Œμž„ μ‹œμž‘ μ—¬λΆ€λ₯Ό μΆ”μ ν•˜λŠ” ν”Œλž˜κ·Έ μΆ”κ°€
851
  this.isStarted = false;
852
  // μ˜€λ””μ˜€ κ΄€λ ¨ 속성 μΆ”κ°€
 
1801
  }
1802
  return;
1803
  }
 
1804
 
1805
  this.animationFrameId = requestAnimationFrame(() => this.animate());
1806
  // κ²Œμž„μ΄ μ‹œμž‘λ˜μ§€ μ•Šμ•˜μœΌλ©΄ λ Œλ”λ§λ§Œ μˆ˜ν–‰
 
1833
  }
1834
 
1835
  this.renderer.render(this.scene, this.camera);
 
1836
  }
1837
  }
1838