# Hello world

> The smallest possible game: a canvas, a background colour and the loop running.

Example `hello-world`, running at https://nacatamalon.com/en/examples/hello-world. The whole catalogue: https://nacatamalon.com/llms/examples.md.

The smallest possible game. `createGame` takes where to draw and what the window is (width, height and background), and the second call takes the game's scenes, keyed by name. With none, the loop still runs and the canvas is cleared every frame: that is all this example does, and it is the base of every other one.

## Code

`index.ts`:

```ts
import { createGame } from 'nacatamalon';

const game = createGame('#app', {
    width: 480,
    height: 320,
    background: '#1a0e2e'
});

// Declare Scenes
game({
});
```
