@gamebob/rocking-rocks
v0.8.0
Published
Building The Rock short mining incremental comedy game
Readme
@gamebob/rocking-rocks
Browser package for Building The Rock, a short mining incremental comedy game.
import { createBuildingTheRock } from "@gamebob/rocking-rocks";
import "@gamebob/rocking-rocks/styles.css";
const game = createBuildingTheRock({
root: document.querySelector("#game")!,
language: "es",
music: {
menu: "/audio/menu.mp3",
gameplay: "/audio/gameplay.mp3",
ending: "/audio/ending.mp3",
}, // optional overrides; every track loops automatically
});
game.setLanguage("en");
game.destroy();The package includes the complete browser runtime, replaceable image manifest, English and Spanish locales, synthesized effects, three built-in looping phase tracks with their own toggle, and the evolution ending.
The demo also reads data-music-url on #game as an optional backwards-compatible override for the gameplay track. Omit it to use the three bundled tracks.
