diff --git a/README.md b/README.md index dc91e71..3efb288 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,5 @@ $ ./run.sh - Télécharger [ThreeJS](https://github.com/mrdoob/three.js) et placer le fichier [`.js`](https://unpkg.com/three@0.146.0/build/three.min.js) dans [`js/lib`](./js/lib/). + +- Placer une image `player.png` dans le dossier [`assets/images`](./assets/images/). diff --git a/js/Cube.js b/js/Cube.js index 8a15f65..5c64549 100644 --- a/js/Cube.js +++ b/js/Cube.js @@ -8,7 +8,6 @@ export class Cube extends Element { if (img) { const loader = new THREE.TextureLoader(); texture = loader.load(img); - loader.load; } this.data = new THREE.Mesh( diff --git a/js/player.js b/js/player.js index 05ed082..004471a 100644 --- a/js/player.js +++ b/js/player.js @@ -3,7 +3,7 @@ import { Rotation } from "./utils.js"; export class Joueur extends Cube { constructor(color) { - super(color, "assets/images/player1.png"); + super(color, "assets/images/player.png"); this.data.position.y = 0.5; this.data.position.x = -2;