- move camera when player have a rollback
This commit is contained in:
Kum1ta
2024-10-22 16:26:05 +02:00
parent 69e0487181
commit 4f0a0ac3aa

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/18 00:30:31 by edbernar #+# #+# */
/* Updated: 2024/10/22 16:23:11 by edbernar ### ########.fr */
/* Updated: 2024/10/22 16:24:58 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -113,6 +113,7 @@ class Player
movePlayer(content)
{
this.object.position.x = content.pos;
this.camera.position.x = content.pos;
}
dispose()