Docker
- Update three in static file
This commit is contained in:
6
site/game/controls.js
vendored
6
site/game/controls.js
vendored
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
@ -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';
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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';
|
||||
|
@ -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) :
|
||||
|
@ -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';
|
||||
|
||||
/*
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 :
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user