add Box3D-powered Bad Movers game
All checks were successful
build / image (push) Successful in 1m39s

This commit is contained in:
Syncer Deploy
2026-08-31 12:32:39 -04:00
parent 147baf6b13
commit 38ac419204
18 changed files with 3320 additions and 10 deletions

View File

@@ -2,9 +2,11 @@ import {
API_PATHS,
FLUX_SOCKET_PATH,
GAME_SOCKET_PATH,
MOVERS_SOCKET_PATH,
ROYALE_SOCKET_PATH,
createShooterGame,
fluxGame,
moversGame,
royaleGame,
type ApiMessage,
} from "@syncer/shared";
@@ -23,6 +25,7 @@ const staticSite = loadStaticSite(process.env.STATIC_ROOT);
const gameLoops = [
hostNetworkedGame(app, GAME_SOCKET_PATH, createShooterGame({ botCount: 0 })),
hostNetworkedGame(app, FLUX_SOCKET_PATH, fluxGame),
hostNetworkedGame(app, MOVERS_SOCKET_PATH, moversGame),
hostNetworkedGame(app, ROYALE_SOCKET_PATH, royaleGame),
];
@@ -176,6 +179,7 @@ function contentType(filePath: string): string {
case ".jpg":
case ".jpeg": return "image/jpeg";
case ".webp": return "image/webp";
case ".wasm": return "application/wasm";
case ".ico": return "image/x-icon";
case ".woff2": return "font/woff2";
default: return "application/octet-stream";