Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
|
@@ -123,7 +123,7 @@ class Enemy {
|
|
| 123 |
|
| 124 |
async initialize(loader) {
|
| 125 |
try {
|
| 126 |
-
const result = await loader.loadAsync('/models/
|
| 127 |
this.mesh = result.scene;
|
| 128 |
this.mesh.position.copy(this.position);
|
| 129 |
this.mesh.scale.set(ENEMY_SCALE, ENEMY_SCALE, ENEMY_SCALE);
|
|
|
|
| 123 |
|
| 124 |
async initialize(loader) {
|
| 125 |
try {
|
| 126 |
+
const result = await loader.loadAsync('/models/enemy1.glb');
|
| 127 |
this.mesh = result.scene;
|
| 128 |
this.mesh.position.copy(this.position);
|
| 129 |
this.mesh.scale.set(ENEMY_SCALE, ENEMY_SCALE, ENEMY_SCALE);
|