diff --git a/js/Cube.js b/js/Cube.js index 5c64549..739c69a 100644 --- a/js/Cube.js +++ b/js/Cube.js @@ -17,5 +17,8 @@ export class Cube extends Element { // Create shadows this.data.castShadow = true; + + // Move up + this.data.position.y = 0.5; } } diff --git a/js/Player.js b/js/Player.js index 70fd57f..d8aedcf 100644 --- a/js/Player.js +++ b/js/Player.js @@ -5,7 +5,6 @@ export class Player extends Cube { constructor(color) { super(color, "assets/images/player.png"); - this.data.position.y = 0.5; this.data.position.x = -2; this.data.rotation.x = this.gameRotation;