From 748d55128a07a9133ff38412c1b0c51e0bce625f Mon Sep 17 00:00:00 2001 From: GMN177 Date: Sun, 24 Sep 2023 18:50:08 +0200 Subject: [PATCH] Fix path --- public/js/game/Board.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/game/Board.js b/public/js/game/Board.js index d9229b3..c00dca7 100644 --- a/public/js/game/Board.js +++ b/public/js/game/Board.js @@ -124,7 +124,7 @@ export class Board extends GameObjectGroup { } createWall(x, y, z) { - let texture = new THREE.TextureLoader().load('./images/osb.jpg'); + let texture = new THREE.TextureLoader().load('./public/images/osb.jpg'); texture.wrapS = THREE.RepeatWrapping; texture.wrapT = THREE.RepeatWrapping; texture.repeat.set(x/y, y/x); @@ -167,7 +167,7 @@ export class Board extends GameObjectGroup { let threeObject = new THREE.Mesh( new THREE.PlaneGeometry(x, y), new THREE.MeshPhongMaterial({ - map: new THREE.TextureLoader().load('./images/table.jpg') + map: new THREE.TextureLoader().load('./public/images/table.jpg') }) ); let cannonObject = new CANNON.Body({