From 9d0b6fe60a2a2629a3fc28aa9793099553d46384 Mon Sep 17 00:00:00 2001 From: Timothee Groleau Date: Sun, 24 Nov 2024 11:49:06 +0800 Subject: [PATCH] fix(rushroyale): fix the stereo sources to match the player positions --- public/views/mp/rushroyale.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/public/views/mp/rushroyale.html b/public/views/mp/rushroyale.html index cf732a60..69018ed2 100644 --- a/public/views/mp/rushroyale.html +++ b/public/views/mp/rushroyale.html @@ -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) => { @@ -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, } );