# Roll the staff credits

> In the ending, scroll roles, names and logos from the bottom of the screen to the top

You can roll the staff credits in the ending just by writing their content between the staff roll command (`@staff-roll`) and `@end`. The game doesn't go on to the next line until the credits finish scrolling.

The examples on this page use the project you make in the [tutorial](/en/tutorial/), "Shiori of the Library."

## Write the content

A staff roll's content runs to many lines, so write it in the code view.

1. Select the last line of the ending, and click "Code" at the top.
2. On the next line, write `@staff-roll time=30s bg=#000000`, then the content below it, and `@end` at the end.

![The code view, with headings and names between the @staff-roll line and @end.](/shots/en/h-staff-roll-code.webp)

| Content line | What appears |
|---|---|
| `# Heading` | A heading, such as a role |
| Text such as names | The text as it is |
| Empty line | A gap |
| `{img logo.png}`, `{img logo.png 120}` | An image (from the "Images" assets; the number is the height in px) |

In the block view, the content is shown together in one card.

![The "Staff roll" card in the block view.](/shots/en/h-staff-roll-blocks.webp)

## Check it by playing

Headings and names scroll from the bottom to the top over a black background.

![Headings such as "Story" and "Art," and names, scrolling over a black background.](/shots/en/h-staff-roll-game.webp)

| Parameter | What it sets | Default |
|---|---|---|
| time | Time to finish scrolling | 60s |
| bg | The color laid behind it (write it like `#000000cc` to make it translucent) | None |
| fade | Fade time at the start and after it finishes scrolling | 1s |
| skip | Lets a click skip to the end | On |

To keep players from skipping it with a click, write `skip=false`. While skipping, the game moves on without scrolling.

## Put the content in a separate file

For a long staff roll, write the content lines as an array of strings in a JSON file in the `data` folder, and point to it with `file=`. In this case, don't write `@end`.

```json
["# Story", "The Shiori of the Library team", "", "# Music", "Free assets"]
```

```
@staff-roll file=credits time=90s bg=#000000
```

## In code

```
@staff-roll time=30s bg=#000000
# Story
The Shiori of the Library team

# Art
Sample sprites and backgrounds

# Music
Free assets
@end
```

For details, see [@staff-roll](/en/reference/staff-roll/).
