update for kirby

This commit is contained in:
Mylloon 2022-11-27 17:20:49 +01:00
parent 8d61067ee2
commit 0437902699
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ export class Env {
};
/**
* Animate all the players in the environnement
* Animate all the entities in the environnement
*/
animate = () => {
// Player animation

View file

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

View file

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