From 0437902699a480167ec5125833e16ad54d3606d9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 27 Nov 2022 17:20:49 +0100 Subject: [PATCH] update for kirby --- js/Env.js | 2 +- js/Player.js | 2 +- js/main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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);