> ## Documentation Index
> Fetch the complete documentation index at: https://world.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Demo Game

## Prerequisites

Before you begin, make sure you have:

* World Engine ([quickstart](/quickstart))
* [Node.js](https://nodejs.org) version 22 or higher installed
* A package manager (npm, yarn, pnpm, or bun)

## Scaffold a demo game project (web)

[Install World CLI](https://world.dev/quickstart) if you haven't already. Once you have it installed,
you can scaffold your first demo game by running the following command in your terminal:

```bash theme={null}
world create --example demo-game # TODO
```

## Start World Engine in development mode

```bash theme={null}
world dev # TODO
```

## Start demo game client in development mode

You need [Node.js](https://nodejs.org) to run the example demo game for web.

```bash theme={null}
cd demo-game-client # TODO
```

Then, install dependencies using your preferred package manager.

<CodeGroup>
  ```bash npm theme={null}
  npm install
  ```

  ```bash yarn theme={null}
  yarn install
  ```

  ```bash pnpm theme={null}
  pnpm install
  ```

  ```bash bun theme={null}
  bun install
  ```
</CodeGroup>

Once installation is successful, run the demo game client.

```bash theme={null}
npm run dev

# Then visit http://localhost:5555
```
