Skip to content

Commit

Permalink
fix(rushroyale): fix the stereo sources to match the player positions
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Nov 24, 2024
1 parent f96e370 commit 9d0b6fe
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion public/views/mp/rushroyale.html
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,17 @@
// wait for css
const base_offset_y = 20;

const players_stereo_source = {
0: -1,
1: 0.5,
2: -0.5,
3: 1,
4: -1,
5: 0.5,
6: -0.5,
7: 1,
};

Array(num_players)
.fill()
.forEach((_, player_idx) => {
Expand Down Expand Up @@ -580,7 +591,7 @@
field_pixel_size: 2.5,
preview_pixel_size: 2,
preview_align: 'tr',
stereo: translate([0, num_players - 1], [-1, 1], player_idx),
stereo: players_stereo_source[player_idx],
format_score: readableScoreFomatter,
}
);
Expand Down

0 comments on commit 9d0b6fe

Please sign in to comment.