This commit is contained in:
Mylloon 2022-11-24 18:20:27 +01:00
parent 33fa6fe5a9
commit ed2c7db811
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 3 additions and 2 deletions

View file

@ -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/).

View file

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

View file

@ -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;