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

# Build a game with Rork

> Rork builds 2D and 3D games without a game engine: SpriteKit and RealityKit on iPhone, three.js in the browser. It generates the 3D models, the animations, and the sound for you.

export const CtaBanner = () => <div style={{
  display: "flex",
  alignItems: "center",
  justifyContent: "space-between",
  gap: "24px",
  flexWrap: "wrap",
  margin: "40px 0 8px",
  padding: "22px 28px",
  borderRadius: "16px",
  background: "linear-gradient(135deg,rgba(249,115,22,0.10),rgba(255,255,255,0.03),rgba(249,115,22,0.06))",
  border: "1px solid rgba(255,255,255,0.08)"
}}>
    <div>
      <div style={{
  fontSize: "19px",
  fontWeight: 700,
  color: "#fff",
  letterSpacing: "-0.3px",
  lineHeight: 1.3
}}>
        Build your app with Rork today.
      </div>
      <div style={{
  fontSize: "14px",
  color: "rgba(255,255,255,0.6)",
  marginTop: "4px",
  lineHeight: 1.5
}}>
        Ship iOS, Android, and web apps by chatting with AI.
      </div>
    </div>
    <a href="https://rork.com?utm_source=docs&amp;utm_medium=referral&amp;utm_campaign=docs-cta&amp;utm_content=cta-banner" onClick={tagCtaLink} style={{
  flexShrink: 0,
  display: "inline-block",
  padding: "10px 24px",
  background: "linear-gradient(135deg,#fff,#f0f0f0)",
  color: "#000",
  fontSize: "14px",
  fontWeight: 600,
  borderRadius: "100px",
  textDecoration: "none",
  whiteSpace: "nowrap"
}}>
      Try Rork for Free
    </a>
  </div>;

You do not need Unity, Unreal, or any game engine. You describe the game, and Rork writes it with the tools the platform already has, then generates the art, the models, and the sound to fill it.

<Frame caption="A 3D pet game running in the iPhone simulator inside Rork. The dog is a generated model, animated and lit in the scene.">
  <img src="https://mintcdn.com/rork/_ERrirOg410HsYIN/images/games/game-in-simulator.png?fit=max&auto=format&n=_ERrirOg410HsYIN&q=85&s=62044fcdabfa2466607f882aaa932b8c" alt="The Rork simulator running a 3D pet game called Buddy, with a corgi in a garden, stat bars for Hunger, Happy, Energy and Clean, and Feed, Play, Sleep and Bath buttons" width="844" height="1669" data-path="images/games/game-in-simulator.png" />
</Frame>

## Start a game

The prompt box on [rork.com](https://rork.com) has two shortcuts for games.

<Frame caption="The two game shortcuts under the prompt box. Both fill in a prompt and switch the project to web.">
  <img src="https://mintcdn.com/rork/_ERrirOg410HsYIN/images/games/quick-buttons.png?fit=max&auto=format&n=_ERrirOg410HsYIN&q=85&s=ef99c6c4f74fc65888cbd9236c69da6c" alt="The Rork prompt box with quick buttons reading Create a Multiplayer Game and Create a 3D Game" width="1575" height="473" data-path="images/games/quick-buttons.png" />
</Frame>

* **Create a 3D Game** fills in `Create a 3D game with realistic physics about...`
* **Create a Multiplayer Game** fills in `Create a multiplayer game about...`

Both also switch the platform to **web**, because a browser game is the fastest way to see something playable. Finish the sentence with your idea, and change the platform first if you want a native app instead.

You do not have to use the shortcuts. Describing the game in your own words works the same way:

```
A 3D pet game. You feed, wash and play with a puppy in a garden, and its mood
and hunger change over time.
```

## Pick web or native

The same idea takes a different shape depending on where it runs. Decide this before you build, because it changes the engine, the distribution, and the plan you need.

|                | Browser game                                         | iPhone game                                           |
| -------------- | ---------------------------------------------------- | ----------------------------------------------------- |
| **2D**         | HTML canvas                                          | SpriteKit                                             |
| **3D**         | three.js with React Three Fiber, physics with Rapier | RealityKit                                            |
| **Share it**   | A link, playable immediately                         | App Store review, then an install                     |
| **Feels like** | A web page that plays                                | A real app at native speed                            |
| **Plan**       | Any paid plan                                        | Rork Max, which lists "Games with native performance" |

Start in the browser to find out whether the game is fun. Move to native when it is, and when you want the App Store, Game Center, or the frame rate. See [Plans & Subscriptions](/introduction/subscriptions) and the [Rork Games page](https://rork.com/games).

<Note>
  Android games are not a documented path today. Build for the browser or for iPhone, and remember a browser game already runs on an Android phone.
</Note>

## Fill the world with generated assets

This is the part that usually stops people making a game alone. Rork generates the pieces in the chat, and puts them into the scene:

* **3D models.** Ask for a prop, a vehicle, or a character. Characters come out rigged, so they can be animated.
* **Animations.** Walk, idle, jump, each as its own clip.
* **Sprites and 2D art** for canvas and SpriteKit games.
* **Music and sound effects**, and voices for characters.

```
Add a 3D low poly treasure chest that opens when the player touches it
```

Rork shows you a preview and the price before it spends anything on a 3D model, and you approve or ask for something different. On iPhone, models are bundled into the app as USDZ. On the web, they load as GLB.

What the pieces cost in build credits:

| Asset                         | Credits                     |
| ----------------------------- | --------------------------- |
| 3D model                      | about 3                     |
| 3D model, low poly            | about 1.5                   |
| Rigging a character           | about 0.5                   |
| Each animation clip           | about 0.3                   |
| Sprites, music, sound effects | varies with size and length |

3D generation works on every plan. See [Images, video, audio, and 3D models](/features/assets) and [Build credits vs Cloud credits](/billing/build-credits-vs-cloud-credits).

## Iterate by showing, not describing

Games are visual, and words are slow. The fastest loop is: look at it, screenshot what is wrong, send the picture.

<Frame caption="Two rounds of iteration: a size change in words, then a screenshot when the UI covered the character.">
  <img src="https://mintcdn.com/rork/_ERrirOg410HsYIN/images/games/chat-iteration.png?fit=max&auto=format&n=_ERrirOg410HsYIN&q=85&s=b3074dad689c242384c7edcfa29a78df" alt="A Rork chat where the user asks to make the puppy smaller, then attaches a screenshot saying the UI overlays the puppy, and the agent shifts the 3D scene upward" width="989" height="1373" data-path="images/games/chat-iteration.png" />
</Frame>

Short, specific asks work better than a list:

```
The camera is too close. Pull it back so the whole garden is visible.
```

```
The jump feels floaty. Increase gravity and shorten the hang time.
```

## Play it while you build

A browser game runs in the preview next to the chat, so you play it as you go.

An iPhone game needs a simulator, and the simulator costs credits while it runs.

<Frame caption="The simulator charges by the minute, and tells you so before you start it.">
  <img src="https://mintcdn.com/rork/_ERrirOg410HsYIN/images/games/simulator-cost.png?fit=max&auto=format&n=_ERrirOg410HsYIN&q=85&s=3944886d252ac08fa1a28387ba3e43fb" alt="The Turn on simulator panel in Rork showing that it costs 0.2 build credits per minute while running" width="580" height="309" data-path="images/games/simulator-cost.png" />
</Frame>

Turn it on to play, and stop it when you are done. The toolbar above the phone can also record the screen and take screenshots, which is where your store video and your first social post come from.

To feel the real frame rate, put the game on a real phone. See [Rork Max app for iPhone](/rork-max/rork-max-app).

## Multiplayer, honestly

Rork has no multiplayer product that you switch on. It writes the multiplayer code into your game, and how hard that is depends on the kind you want.

**Straightforward:** turn-based play, two players on one device, and rooms with a code.

**Harder:** real-time online play. It needs matchmaking, state syncing between players, and rules for what happens when somebody's connection drops. Rork's own FAQ says it plainly: expect a few rounds of iteration.

How it is built:

* **In the browser**, Rork writes a small server with Cloudflare Workers and Durable Objects, and the players talk to it over WebSockets.
* **On iPhone**, Rork uses **Game Center**, which brings real-time and turn-based matches, sign-in, leaderboards, and achievements for free.
* **Voice chat** is separate from the game state, and Rork hosts the servers that make it work.

Start turn-based and add real-time later. A turn-based game that works beats a real-time game that desyncs.

## What to expect

Generated games are real games, not tech demos, but they have a ceiling. Keep scenes in the range Rork targets: roughly a thousand moving things, a few hundred thousand triangles, textures that fit comfortably in memory. Ask for a low poly model when a detailed one is not needed, since it costs less and runs faster.

Some things are not what Rork does:

* **No Unity or Unreal**, and no importing a project from them.
* **Leaderboards** come from Game Center on iPhone. A browser game needs a backend, which Rork can build with [Rork Cloud](/backend/rork-cloud).
* **Selling things in the game** goes through the normal in-app purchase route. See [How to add a paywall with RevenueCat](/payment-guides/revenuecat-copied-1).

## Ship it

A browser game publishes like any web app: press **Publish**, and share the address. See [Rork Web](/web/rork-web).

An iPhone game goes to the App Store like any other app. Games get read carefully in review, so run the [AI App Store Reviewer](/ai-app-store-reviewer) first, and be careful with anything that looks like gambling, loot boxes, or a copied character. See [Publish your app](/introduction/deploy-your-app).

## FAQ

<AccordionGroup>
  <Accordion title="Do I need Rork Max to make a game?">
    For a native iPhone game, yes. Max is the plan that lists "Games with native performance". Browser games work on any paid plan, and 3D generation works on every plan.
  </Accordion>

  <Accordion title="Can I import my Unity or Unreal project?">
    No. Rork writes games with SpriteKit, RealityKit, and three.js, so an engine project cannot be brought across.
  </Accordion>

  <Accordion title="Can I use my own 3D models?">
    Yes. Drop them into the chat and say where they go. Generated and uploaded models sit together in the Assets tab.
  </Accordion>

  <Accordion title="Does the simulator cost credits?">
    Yes, 0.2 build credits per minute while it runs. The panel says so before you start it, and stopping it stops the charge.
  </Accordion>

  <Accordion title="Can two people build the same game?">
    Yes, invite them as editors, though only one message runs at a time. See [Share a project and work together](/collaborate/share-a-project).
  </Accordion>

  <Accordion title="My game runs slowly. What now?">
    Say what is slow and where. Common fixes are fewer objects on screen, low poly models, and smaller textures. The logs in **More → Code** show what the game prints while it runs. See [Read the code and read the logs](/features/code-and-logs).
  </Accordion>
</AccordionGroup>

## Next steps

<CardGroup cols={2}>
  <Card icon="wand-magic-sparkles" href="/features/assets" title="Generate models and sound">
    How the 3D, audio, and image tools work.
  </Card>

  <Card icon="compass" href="/swift-vs-react-native/whats-the-difference" title="iPhone, Android, or web">
    Pick the platform before you build.
  </Card>

  <Card icon="mobile" href="/rork-max/rork-max-app" title="Play it on your phone">
    Install the game on a real device.
  </Card>

  <Card icon="gamepad" href="https://rork.com/games" title="Rork Games">
    The product page, with examples of what Rork builds.
  </Card>
</CardGroup>

<CtaBanner />
