lines sample game inside Storybook so you can play a full round locally before writing a single line of game code.
Install Node.js 22.16.0
The SDK requires Node.js version 22.16.0. The recommended way is via nvm:
Install dependencies
From the repo root, install all workspace dependencies in one command:If no error messages appear, you are ready to continue.
Windows users: Storybook may fail to start without Initial Storybook loading on Windows can take up to 15 minutes, but hot reloads after that are fast.
cross-env. If you encounter an error, update the storybook script in apps/lines/package.json:Run the lines game in Storybook
TurboRepo’s Storybook opens in your browser. You will see a sidebar with story sets like
--filter flag targets a specific workspace package by the name field in its package.json. The sample game is named lines:COMPONENTS, MODE_BASE, and MODE_BONUS.Play a base game round
- In the Storybook sidebar, navigate to MODE_BASE → book → random.
- An Action button appears in the bottom-left corner of the game canvas.
- Click Action and wait for a complete base game round to finish.
Next steps
Now that the game is running locally, you can explore the rest of the development workflow:- Building and Launching — build for production and deploy to Stake Engine.
- Book and Events — understand how bookEvents and emitterEvents drive game behaviour.
