# Run a game outside the site

## HTML

```html
<canvas id="screen" width="256" height="256"></canvas>
<script src="https://play.inta.site/v1/claude.js"></script>
<script>
const game = {
  init: () => ({x: 32, y: 96}),
  step: (s, input, world, dt) => ({...s, x: s.x + input.vector().x * 60 * dt}),
  draw(s, g) { g.clear(); g.hero(s.x, s.y) },
}
GameLib.run(game, {canvas: document.getElementById('screen')})
</script>
```

If external scripts are blocked, copy `claude.js` next to the HTML file.

## Module

```js
import { run } from 'https://play.inta.site/engine.mjs'
run(game, {canvas: document.getElementById('screen')})
```

Types: `/engine.d.ts`.
