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({