Randomize animation Seeds on game reset
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
98d6a97068
commit
3abc4ad2a1
@ -4639,6 +4639,11 @@ const resetGame = (game) => {
|
||||
session.player.color = session.color;
|
||||
}
|
||||
}
|
||||
|
||||
game.animationSeeds = [];
|
||||
for (let i = 0, p = 0; i < game.tileOrder.length; i++) {
|
||||
game.animationSeeds.push(Math.random());
|
||||
}
|
||||
}
|
||||
|
||||
const createGame = (id) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user