Raise online play to 16-player lobbies and 8-player games
Lobbies hold 16 players and the sandbox 16 fighters, games up to 8. The arena gets spawns 5-8 (outer ledges and middle platforms) and the race start eight places. The sandbox adds eight more spawns, each the open spot farthest from the rest. Rival cards wrap into rows of four, the lobby's player list goes to two tiny columns when crowded, and the server keeps frame packets to one datagram. Formatted with clang-format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
56af1c357c
commit
6003175173
19 files changed
+247
-140
No files matched your search
+8
-6
@@ -363,12 +363,14 @@ void Settings::apply(Game& game)
|
||||
void Settings::fullscreen_apply(Game& game)
|
||||
{
|
||||
#ifdef __EMSCRIPTEN__
|
||||
EM_ASM({
|
||||
if ($0 && !document.fullscreenElement)
|
||||
document.documentElement.requestFullscreen().catch(function(error){});
|
||||
if (!$0 && document.fullscreenElement)
|
||||
document.exitFullscreen();
|
||||
}, isFullscreen);
|
||||
EM_ASM(
|
||||
{
|
||||
if ($0 && !document.fullscreenElement)
|
||||
document.documentElement.requestFullscreen().catch(function(error){});
|
||||
if (!$0 && document.fullscreenElement)
|
||||
document.exitFullscreen();
|
||||
},
|
||||
isFullscreen);
|
||||
#else
|
||||
SDL_SetWindowFullscreen(game.window, isFullscreen);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user