Spaces:
Running
Running
cutechicken
commited on
Commit
•
a45592c
1
Parent(s):
c0b9876
Update game.js
Browse files
game.js
CHANGED
@@ -160,10 +160,10 @@ class TankPlayer {
|
|
160 |
|
161 |
async initialize(scene, loader) {
|
162 |
try {
|
163 |
-
const bodyResult = await loader.loadAsync('/models/
|
164 |
this.body = bodyResult.scene;
|
165 |
|
166 |
-
const turretResult = await loader.loadAsync('/models/
|
167 |
this.turret = turretResult.scene;
|
168 |
|
169 |
this.turretGroup.position.y = 0.2;
|
|
|
160 |
|
161 |
async initialize(scene, loader) {
|
162 |
try {
|
163 |
+
const bodyResult = await loader.loadAsync('/models/abramsBody.glb');
|
164 |
this.body = bodyResult.scene;
|
165 |
|
166 |
+
const turretResult = await loader.loadAsync('/models/abramsTurret.glb');
|
167 |
this.turret = turretResult.scene;
|
168 |
|
169 |
this.turretGroup.position.y = 0.2;
|