fix assets

Fix #7314
Fix #7313
This commit is contained in:
syuilo
2021-03-07 14:40:57 +09:00
parent 17dc50c242
commit 5b965349a5
189 changed files with 15 additions and 15 deletions

View File

@ -340,7 +340,7 @@ export class Room {
@autobind
private loadRoom() {
const type = this.roomInfo.roomType;
new GLTFLoader().load(`/static-assets/room/rooms/${type}/${type}.glb`, gltf => {
new GLTFLoader().load(`/static-assets/client/room/rooms/${type}/${type}.glb`, gltf => {
gltf.scene.traverse(child => {
if (!(child instanceof THREE.Mesh)) return;
@ -375,7 +375,7 @@ export class Room {
const def = furnitureDefs.find(d => d.id === furniture.type);
return new Promise<GLTF>((res, rej) => {
const loader = new GLTFLoader();
loader.load(`/static-assets/room/furnitures/${furniture.type}/${furniture.type}.glb`, gltf => {
loader.load(`/static-assets/client/room/furnitures/${furniture.type}/${furniture.type}.glb`, gltf => {
const model = gltf.scene;
// Load animation

View File

@ -16,7 +16,7 @@ export function playFile(file: string, volume: number) {
if (cache.has(file)) {
audio = cache.get(file);
} else {
audio = new Audio(`/static-assets/sounds/${file}.mp3`);
audio = new Audio(`/static-assets/client/sounds/${file}.mp3`);
cache.set(file, audio);
}
audio.volume = masterVolume - ((1 - volume) * masterVolume);