@gamebob/blind-timer
v0.3.0
Published
Blind Timer browser game for web and hybrid mobile hosts
Readme
@gamebob/blind-timer
Browser/DOM game package shared by the GameBob Astro portal and the Blind Timer Capacitor app. It has no dependency on Astro, a UI framework or Capacitor.
import { createBlindTimer } from "@gamebob/blind-timer";
import "@gamebob/blind-timer/styles.css";
const game = await createBlindTimer({
root: document.querySelector("#game")!,
language: "en",
apiBaseUrl: "https://www.gamebob.dev",
});
game.pause();
game.resume();
await game.setLanguage("es");
game.destroy();Capacitor hosts can inject native implementations through the platform option. Static
catalog data is available from @gamebob/blind-timer/metadata, and the shared Cloudflare
Worker implementation is exposed from @gamebob/blind-timer/server.
