From d32df13f1ba891c0159ebb105e420d862ac1052e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Thu, 20 May 2021 18:05:03 +0200 Subject: [PATCH] Camera now show up when someone is moving and hides 5 seconds after we stop moving. Also, added an animation to show/hide the webcam. --- front/dist/index.tmpl.html | 3 +- front/src/Phaser/Player/Player.ts | 8 ++- front/src/Stores/GameStore.ts | 3 + front/src/Stores/MediaStore.ts | 113 ++++++++++++++++++++++++++++++ front/src/WebRtc/MediaManager.ts | 23 ++++-- front/style/style.css | 6 +- 6 files changed, 146 insertions(+), 10 deletions(-) create mode 100644 front/src/Stores/GameStore.ts diff --git a/front/dist/index.tmpl.html b/front/dist/index.tmpl.html index adbbfe44..7ef44116 100644 --- a/front/dist/index.tmpl.html +++ b/front/dist/index.tmpl.html @@ -73,7 +73,6 @@ -
-