player pos is checked

This commit is contained in:
2024-01-16 17:47:31 +01:00
parent a1e732f167
commit 58c0df447c
10 changed files with 180 additions and 52 deletions

View File

@ -8,6 +8,11 @@ class Player
this.nb_goal = nb_goal;
this.game = game;
}
update_pos(new_position, time)
{
this.pos = new_position;
}
}
export { Player }