Files
METH_Transcendence/site/real_game/class/soloClass/Map.js
Kum1ta 6aa715978e Game
- new class SoloGame/MultiGame
2024-08-28 14:09:54 +02:00

37 lines
1.2 KiB
JavaScript

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Map.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/28 12:23:48 by edbernar #+# #+# */
/* Updated: 2024/08/28 14:01:24 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
class Map
{
constructor(scene)
{
createGround(scene);
}
dispose()
{
}
}
function createGround(scene)
{
const geometry = new THREE.PlaneGeometry(window.innerWidth / 100, window.innerHeight / 100);
const material = new THREE.MeshPhysicalMaterial();
const mesh = new THREE.Mesh(geometry, material);
scene.add(mesh);
}
export { Map };