Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
GMN177 committed Sep 24, 2023
1 parent d9f48a7 commit 748d551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/game/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 748d551

Please sign in to comment.