diff --git a/js/player.js b/js/Player.js similarity index 98% rename from js/player.js rename to js/Player.js index 004471a..70fd57f 100644 --- a/js/player.js +++ b/js/Player.js @@ -1,7 +1,7 @@ import { Cube } from "./Cube.js"; import { Rotation } from "./utils.js"; -export class Joueur extends Cube { +export class Player extends Cube { constructor(color) { super(color, "assets/images/player.png"); diff --git a/js/main.js b/js/main.js index eb646bc..65980ee 100644 --- a/js/main.js +++ b/js/main.js @@ -1,6 +1,6 @@ import { Env } from "./Env.js"; import { Plane } from "./Plane.js"; -import { Joueur } from "./player.js"; +import { Player } from "./Player.js"; window.addEventListener("load", () => main()); @@ -17,10 +17,10 @@ const main = () => { ); env.addToScene(plan); - const joueur = new Joueur(THREE.Color.NAMES.red); - env.addToScene(joueur); + const player = new Player(THREE.Color.NAMES.red); + env.addToScene(player); - addEventListener("keypress", joueur.controlUser); + addEventListener("keypress", player.controlUser); /** * Run the game