wrenchInitializing Your Game

When you want to set up your project to work with RUN.game, or if you want to make an existing project publish to a new game (like forking a project), run:

rundot init

This command interactively walks you through the initialization process.

circle-check

Manually initialize with CLI options

You can bypass interactive mode and manually specify everything. To see options:

rundot init --help

Under the hood

After initialization, a game.config.json file is created in your project root that stores your game's configuration:

{
  "gameId": "your-game-id",
  "relativePathToBuildFolder": "./dist",
  "usesPreloader": false
}

This makes future deployments easier by storing your game ID and build path.

Last updated