Game
- new class SoloGame/MultiGame
This commit is contained in:
27
site/real_game/class/multiClass/Video.js
Normal file
27
site/real_game/class/multiClass/Video.js
Normal file
@ -0,0 +1,27 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* Video.js :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/26 18:57:00 by hubourge #+# #+# */
|
||||
/* Updated: 2024/08/27 14:27:27 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
class Video
|
||||
{
|
||||
video = null;
|
||||
|
||||
constructor(path)
|
||||
{
|
||||
this.video = document.createElement('video');
|
||||
this.video.src = path;
|
||||
this.video.muted = true;
|
||||
this.video.autoplay = true;
|
||||
this.video.loop = true;
|
||||
}
|
||||
}
|
||||
|
||||
export { Video };
|
Reference in New Issue
Block a user