- Update three in static file
This commit is contained in:
Kum1ta
2024-08-24 20:46:11 +02:00
parent 7c14bf2836
commit b5d13ccf6f
2000 changed files with 2010104 additions and 59 deletions

View File

@ -3,15 +3,15 @@
/* ::: :::::::: */
/* controls.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/07 15:20:55 by hubourge #+# #+# */
/* Updated: 2024/08/07 16:53:34 by hubourge ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import { sendRequest } from "./websocket.js";
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
class Moves {
wPress = false;

View File

@ -3,14 +3,14 @@
/* ::: :::::::: */
/* elements.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/07 16:07:51 by hubourge #+# #+# */
/* Updated: 2024/08/08 15:37:06 by hubourge ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
/* --- Box items --- */
let BoxWidth = 1;

View File

@ -3,14 +3,14 @@
/* ::: :::::::: */
/* light.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/30 13:50:46 by edbernar #+# #+# */
/* Updated: 2024/08/07 16:20:11 by edbernar ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
// ------------------- Spot Light ------------------- //
function createSpotLight(color, target, scene) {

View File

@ -3,16 +3,16 @@
/* ::: :::::::: */
/* main.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/30 13:50:49 by edbernar #+# #+# */
/* Updated: 2024/08/08 16:33:16 by hubourge ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import { sendRequest } from './websocket.js';
import { MoveObject } from './controls.js';
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
import Stats from 'stats.js';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { createSpotLight, refreshSpotLight, createLightAmbient, createLightPoint, refreshLightPoint } from './light.js';

View File

@ -6,11 +6,11 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/30 13:50:51 by edbernar #+# #+# */
/* Updated: 2024/08/18 15:20:26 by edbernar ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
function createMap(scene) {
let wallUp;

View File

@ -6,12 +6,12 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/22 23:13:53 by edbernar #+# #+# */
/* Updated: 2024/08/24 16:56:57 by edbernar ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import * as THREE from 'three'
import * as THREE from '/static/three/build/three.module.js'
const loader = new GLTFLoader();

View File

@ -6,11 +6,11 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/22 17:19:17 by edbernar #+# #+# */
/* Updated: 2024/08/24 16:47:41 by edbernar ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three'
import * as THREE from '/static/three/build/three.module.js'
import { Screen, light } from './Screen.js'
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';

View File

@ -3,14 +3,14 @@
/* ::: :::::::: */
/* Ball.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/20 17:02:47 by edbernar #+# #+# */
/* Updated: 2024/08/22 16:21:59 by hubourge ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
/*
Todo (Eddy) :

View File

@ -3,14 +3,14 @@
/* ::: :::::::: */
/* Map.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/20 14:52:55 by hubourge #+# #+# */
/* Updated: 2024/08/24 19:55:26 by hubourge ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
/*

View File

@ -6,12 +6,12 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/21 10:34:49 by edbernar #+# #+# */
/* Updated: 2024/08/22 10:46:18 by edbernar ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import { playerExist } from './Player'
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
let opponentExist = false;

View File

@ -3,14 +3,14 @@
/* ::: :::::::: */
/* Player.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/18 00:30:31 by edbernar #+# #+# */
/* Updated: 2024/08/22 17:06:28 by hubourge ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
/*
Explication du code :

View File

@ -3,14 +3,14 @@
/* ::: :::::::: */
/* main.js :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/18 00:53:53 by edbernar #+# #+# */
/* Updated: 2024/08/22 17:11:54 by hubourge ### ########.fr */
/* Updated: 2024/08/24 20:36:07 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
import * as THREE from 'three';
import * as THREE from '/static/three/build/three.module.js';
import { Player } from './class/Player'
import { Map } from './class/Map'
import { Ball } from './class/Ball'