diff --git a/js/Env.js b/js/Env.js index 6d1e74c..3313805 100644 --- a/js/Env.js +++ b/js/Env.js @@ -99,7 +99,7 @@ export class Env { }; /** - * Animate all the players in the environnement + * Animate all the entities in the environnement */ animate = () => { // Player animation diff --git a/js/Player.js b/js/Player.js index d8aedcf..066b0e4 100644 --- a/js/Player.js +++ b/js/Player.js @@ -3,7 +3,7 @@ import { Rotation } from "./utils.js"; export class Player extends Cube { constructor(color) { - super(color, "assets/images/player.png"); + super(color, "assets/images/player.jpg"); this.data.position.x = -2; this.data.rotation.x = this.gameRotation; diff --git a/js/main.js b/js/main.js index 59273e6..e677257 100644 --- a/js/main.js +++ b/js/main.js @@ -20,7 +20,7 @@ const main = () => { env.addToScene(plan); // Player - const player = new Player(THREE.Color.NAMES.red); + const player = new Player(THREE.Color.NAMES.pink); env.addToScene(player, TypeEntity.player); addEventListener("keypress", player.controlUser);