@gamebob/axon-surge
v0.45.0
Published
Browser/DOM game package shared by the GameBob Astro portal and the Axon Surge Capacitor app. It has no dependency on Astro, a UI framework or Capacitor.
Downloads
5,577
Readme
@gamebob/axon-surge
Browser/DOM game package shared by the GameBob Astro portal and the Axon Surge Capacitor app. It has no dependency on Astro, a UI framework or Capacitor.
import { createBlindTimer } from "@gamebob/axon-surge";
import "@gamebob/axon-surge/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/axon-surge/metadata, and the shared Cloudflare
Worker implementation is exposed from @gamebob/axon-surge/server.
