Spaces:
Running
Running
cutechicken
commited on
Commit
β’
220212e
1
Parent(s):
f027a73
Update game.js
Browse files
game.js
CHANGED
@@ -32,7 +32,6 @@ class TankPlayer {
|
|
32 |
this.turretGroup = new THREE.Group();
|
33 |
this.health = MAX_HEALTH;
|
34 |
this.isLoaded = false; // λ‘λ© μν μΆκ°
|
35 |
-
this.previousTankPosition = new THREE.Vector3();
|
36 |
}
|
37 |
|
38 |
async initialize(scene, loader) {
|
@@ -276,6 +275,7 @@ class Game {
|
|
276 |
this.score = 0;
|
277 |
this.isGameOver = false;
|
278 |
this.isLoading = true; // λ‘λ© μν μΆκ°
|
|
|
279 |
|
280 |
// λ§μ°μ€ μν
|
281 |
this.mouse = {
|
|
|
32 |
this.turretGroup = new THREE.Group();
|
33 |
this.health = MAX_HEALTH;
|
34 |
this.isLoaded = false; // λ‘λ© μν μΆκ°
|
|
|
35 |
}
|
36 |
|
37 |
async initialize(scene, loader) {
|
|
|
275 |
this.score = 0;
|
276 |
this.isGameOver = false;
|
277 |
this.isLoading = true; // λ‘λ© μν μΆκ°
|
278 |
+
this.previousTankPosition = new THREE.Vector3();
|
279 |
|
280 |
// λ§μ°μ€ μν
|
281 |
this.mouse = {
|