Spaces:
Running
Running
Update game.js
Browse files
game.js
CHANGED
@@ -40,11 +40,11 @@ class TankPlayer {
|
|
40 |
|
41 |
async initialize(scene, loader) {
|
42 |
try {
|
43 |
-
const bodyResult = await loader.loadAsync('/models/
|
44 |
this.body = bodyResult.scene;
|
45 |
this.body.position.copy(this.position);
|
46 |
|
47 |
-
const turretResult = await loader.loadAsync('/models/
|
48 |
this.turret = turretResult.scene;
|
49 |
|
50 |
this.turretGroup.position.y = 0.2;
|
|
|
40 |
|
41 |
async initialize(scene, loader) {
|
42 |
try {
|
43 |
+
const bodyResult = await loader.loadAsync('/models/abramsBlow.glb');
|
44 |
this.body = bodyResult.scene;
|
45 |
this.body.position.copy(this.position);
|
46 |
|
47 |
+
const turretResult = await loader.loadAsync('/models/abramsTlow.glb');
|
48 |
this.turret = turretResult.scene;
|
49 |
|
50 |
this.turretGroup.position.y = 0.2;
|