Site
- add checkbox to play with bot in lobby page - fix bug when input for nb bot is null - secure request 0 tournament - change time to reconnect in websocket Game - fix bug camera when player move up to down or reverse in goal animation
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user