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

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Let players own items across games

> Guides for game items, NFTs, and game state on Solana.

A game item on Solana is a token in the player's wallet, not a row in your
database. The player owns it: they can trade it, and any other game or app can
read it and decide what it means there. Your game keeps control of what you
define, such as who may mint new items and what metadata they carry.

The concepts behind this are
<span className="sol-chip" data-concept="mint"><Tooltip headline="Mints & authorities" tip="A mint account defines a token: its supply, its decimals, who may create more (mint authority), and who may freeze holders (freeze authority)." cta="Learn more" href="/developers/docs/tokens/basics/create-mint">mints</Tooltip><span className="nojs-only"> ([Mints & authorities](/developers/docs/tokens/basics/create-mint): A mint account defines a token: its supply, its decimals, who may create more (mint authority), and who may freeze holders (freeze authority).)</span>,</span> which define each
item or collection, and
<span className="sol-chip" data-concept="token-account"><Tooltip headline="Token accounts" tip="Wallets don't hold tokens directly. Each token (USDC, or your own asset) gets a small account owned by the wallet, and transfers move between these accounts." cta="Learn more" href="/developers/docs/tokens/basics/create-token-account">token accounts</Tooltip><span className="nojs-only"> ([Token accounts](/developers/docs/tokens/basics/create-token-account): Wallets don't hold tokens directly. Each token (USDC, or your own asset) gets a small account owned by the wallet, and transfers move between these accounts.)</span>,</span>
which record who holds it.

<Note>
**A tutorial is coming.** "Let players own items across games" will walk
through minting an item to a player and reading it from a second app, on the
same template as the [checkout tutorial](/developers/docs/payments/checkout). Until then, the
guides below cover each part.
</Note>

## Items and NFTs

<Columns cols={2}>
<Card title="NFTs and digital assets in games" icon="sword" href="/developers/cookbook/games/nfts-in-games" arrow>
Use NFTs and other digital assets as game items.
</Card>
<Card title="Metaplex metadata" icon="image" href="/developers/docs/tokens/metaplex">
Add metadata to tokens with the Metaplex Token Metadata program.
</Card>
<Card title="Interact with tokens in programs" icon="coins" href="/developers/cookbook/games/interact-with-tokens" arrow>
Mint, transfer, and burn tokens from an onchain game program.
</Card>
<Card title="Token basics" icon="list" href="/developers/docs/tokens/basics">
Create a mint, mint tokens, transfer them, and close accounts.
</Card>
</Columns>

## Game state and logic

<Columns cols={2}>
<Card title="Getting started with game development" icon="gamepad-2" href="/developers/cookbook/games/getting-started-with-game-development" arrow>
How games use Solana, and where to start.
</Card>
<Card title="Hello world" icon="rocket" href="/developers/cookbook/games/hello-world" arrow>
A basic adventure game built with the Anchor framework.
</Card>
<Card title="Saving game state" icon="save" href="/developers/cookbook/games/saving-game-state" arrow>
Store a game's state in a Solana program.
</Card>
<Card title="Energy system" icon="battery-charging" href="/developers/cookbook/games/energy-system" arrow>
Let players spend energy on actions and refill it over time.
</Card>
<Card title="Store SOL in a PDA" icon="vault" href="/developers/cookbook/games/store-sol-in-pda" arrow>
Reward players with SOL held by a program-derived address.
</Card>
<Card title="Game examples" icon="library" href="/developers/cookbook/games/game-examples" arrow>
Open-source games and examples with tutorials.
</Card>
</Columns>

## Engines and SDKs

<Columns cols={2}>
<Card title="Game SDKs" icon="code" href="/developers/docs/clients/community/game-sdks" arrow>
SDKs for Unity, Unreal, and other game engines.
</Card>
<Card title="Port Anchor to Unity" icon="box" href="/developers/cookbook/games/porting-anchor-to-unity" arrow>
Call your Anchor program from Unity using its IDL.
</Card>
</Columns>
