Unzip the template, open it in your code editor, and install dependencies:
npminstall
Option B: Build from scratch
If you're an experienced developer and prefer setting up projects manually:
Use relative file paths. When deployed, your game is served from a subdirectory. If you use Vite, add this to vite.config.js:
{base:'./',}
Build to ./dist. The CLI looks for your build there by default. You can customize the build path if needed.
6
Initialize your game
From your project's root folder:
rundotinit
This walks you through naming and configuring your game for the RUN.game platform. It creates a game.config.json file that stores your game ID and build settings.
You'll get a shareable link, playable by anyone on web or in the RUN.game app. The link is unlisted by default — no one will find it on the platform unless you publish it.