Next.js app that plays real .vpx tables via @valknar/vpinball-wasm (WebAssembly Visual Pinball). Demo mode with the bundled default table, drag-and-drop custom table upload, a cabinet-styled UI with a coin-door HUD (fullscreen/stats/info/eject), a custom 404 page, PWA support (hand-rolled service worker), and a static Docker Compose deployment behind nginx. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hQoM3jJT1Lx7CMTciMzvD
12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
export interface KeyBinding {
|
|
keys: string;
|
|
action: string;
|
|
}
|
|
|
|
export const KEY_BINDINGS: KeyBinding[] = [
|
|
{ keys: "Left Shift", action: "Left flipper" },
|
|
{ keys: "Right Shift", action: "Right flipper" },
|
|
{ keys: "Enter", action: "Plunger" },
|
|
{ keys: "1", action: "Start game" },
|
|
];
|