Game
- Starting class
This commit is contained in:
@ -3,22 +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/26 17:19:01 by hubourge ### ########.fr */
|
||||
/* Updated: 2024/08/27 14:31:15 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
import * as THREE from '/node_modules/three/build/three.module.js';
|
||||
// import * as THREE from '/static/javascript/three/build/three.module.js';
|
||||
|
||||
/*
|
||||
Todo (Eddy) :
|
||||
- Ajouter fonction pour changer la gravité de la balle (OK)
|
||||
- Ajouter un effet plus naturel pour le déplacement de la balle (OK)
|
||||
|
||||
*/
|
||||
import * as THREE from 'three';
|
||||
|
||||
class Ball
|
||||
{
|
||||
@ -107,6 +99,11 @@ class Ball
|
||||
});
|
||||
}
|
||||
/*---------------------------------------------------*/
|
||||
|
||||
dispose()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -3,15 +3,15 @@
|
||||
/* ::: :::::::: */
|
||||
/* 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/26 23:47:10 by hubourge ### ########.fr */
|
||||
/* Updated: 2024/08/27 14:29:36 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
// import * as THREE from '/static/javascript/three/build/three.module.js';
|
||||
import * as THREE from '/node_modules/three/build/three.module.js';
|
||||
import * as THREE from 'three';
|
||||
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
||||
import { Video } from './Video.js';
|
||||
|
||||
|
@ -3,16 +3,17 @@
|
||||
/* ::: :::::::: */
|
||||
/* Opponent.js :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/21 10:34:49 by edbernar #+# #+# */
|
||||
/* Updated: 2024/08/26 17:19:16 by hubourge ### ########.fr */
|
||||
/* Updated: 2024/08/27 14:27:49 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
import { playerExist } from './Player'
|
||||
import * as THREE from 'three';
|
||||
|
||||
// import * as THREE from '/static/javascript/three/build/three.module.js';
|
||||
import * as THREE from '/node_modules/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/26 17:19:30 by hubourge ### ########.fr */
|
||||
/* Updated: 2024/08/27 14:27:39 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
import * as THREE from '/node_modules/three/build/three.module.js';
|
||||
import * as THREE from 'three';
|
||||
// import * as THREE from '/static/javascript/three/build/three.module.js';
|
||||
|
||||
/*
|
||||
|
@ -3,16 +3,13 @@
|
||||
/* ::: :::::::: */
|
||||
/* Video.js :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: hubourge <hubourge@student.42.fr> +#+ +:+ +#+ */
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/26 18:57:00 by hubourge #+# #+# */
|
||||
/* Updated: 2024/08/26 19:20:32 by hubourge ### ########.fr */
|
||||
/* Updated: 2024/08/27 14:27:27 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
// import * as THREE from '/static/javascript/three/build/three.module.js';
|
||||
import * as THREE from '/node_modules/three/build/three.module.js';
|
||||
|
||||
class Video
|
||||
{
|
||||
video = null;
|
||||
|
Reference in New Issue
Block a user