render current player in secondary color

This commit is contained in:
Vinzenz Schroeter 2024-04-16 00:07:44 +02:00
parent fbaad86555
commit c4c4eb6358
13 changed files with 255 additions and 72 deletions

View file

@ -6,7 +6,7 @@ export default function Controls({playerId, logout}: {
playerId: string,
logout: () => void
}) {
const url = new URL(import.meta.env.VITE_TANK_CONTROLS_URL);
const url = new URL('controls', import.meta.env.VITE_TANK_WS);
url.searchParams.set('playerId', playerId);
const {
sendMessage,