From ed2c7db811f1df2aa6e0bd9fe351784f0bb8e83f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 24 Nov 2022 18:20:27 +0100 Subject: [PATCH] readme --- README.md | 2 ++ js/Cube.js | 1 - js/player.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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;