Spaces:
Running
Running
cutechicken
commited on
Commit
•
5a6ad6d
1
Parent(s):
34dece2
Update game.js
Browse files
game.js
CHANGED
@@ -164,7 +164,7 @@ class Enemy {
|
|
164 |
|
165 |
async initialize(loader) {
|
166 |
try {
|
167 |
-
const modelPath = this.type === 'tank' ? '/models/enemy1.glb' : '/models/
|
168 |
const result = await loader.loadAsync(modelPath);
|
169 |
this.mesh = result.scene;
|
170 |
this.mesh.position.copy(this.position);
|
|
|
164 |
|
165 |
async initialize(loader) {
|
166 |
try {
|
167 |
+
const modelPath = this.type === 'tank' ? '/models/enemy1.glb' : '/models/enemy1.glb';
|
168 |
const result = await loader.loadAsync(modelPath);
|
169 |
this.mesh = result.scene;
|
170 |
this.mesh.position.copy(this.position);
|