Merge branch 'main' of github.com:Kum1ta/METH_Transcendence into main

This commit is contained in:
hubourge
2024-10-12 21:51:54 +02:00
8 changed files with 98 additions and 16 deletions

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/18 00:30:31 by edbernar #+# #+# */
/* Updated: 2024/10/11 11:08:30 by edbernar ### ########.fr */
/* Updated: 2024/10/12 16:58:41 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -338,6 +338,8 @@ class Player
if (this.object.position.y >= this.limits.up)
{
clearInterval(this.interval);
this.object.position.y = this.limits.up;
this.camera.position.y = 2.34;
this.interval = null;
}
}, 5);
@ -356,6 +358,7 @@ class Player
clearInterval(this.interval);
this.interval = null;
this.object.position.y = this.limits.down;
this.camera.position.y = 1;
}
}, 5);
}