> For the complete documentation index, see [llms.txt](https://docs.play.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.play.fun/introduction/readme.md).

# Building with play.fun

play.fun is a platform where every game gets its own tradable token - a **playcoin**. When people trade your game's playcoin, you earn directly from the trading fees. No app stores, no middlemen, no 30% cut. Integration takes minutes.

***

### The Problem

As a game dev today, your options suck:

* Submit to app stores → lose 30% on every transaction
* Pay for your own marketing → no guarantee of players
* Hard to reach real users without burning budget
* Platform takes the upside - not you

### What play.fun gives you

play.fun flips the model:

* **Free distribution** to millions of players
* **Earn from trading volume** - every trade of your game's playcoin generates fees that go directly to you
* **Plug-and-play SDK** to integrate in minutes
* **Your own token** - each game gets its own playcoin on Solana, tradable and spendable on the game

### How Developers earn

1. Your game gets a **playcoin** - a Solana token launched specifically for your game
2. Players trade your playcoin on the bonding curve (and on DEX after graduation)
3. Every trade charges a fee - **you earn directly from those trading fees**
4. More players and more trading volume = more earnings for you
5. Earnings are in SOL, claimable from your on-chain fee position

Your revenue scales with your game's popularity. Build a great game, attract players, and the trading activity around your playcoin becomes your revenue stream.

### Why it works

* Players are already here, earning playcoins by playing
* Games are ranked and surfaced by player engagement
* Each game has its own tradable playcoin on Solana
* Devs earn directly from trading volume - not from a middleman cutting you a check
* No corp gatekeeping, no 30% cut, no BS

### What you can do

* Submit any game - even small AI-built ones or MVPs
* Launch a playcoin for your game
* Earn by building. Grow by default. Own your upside.

### Get started

**1. Build your game**

**2. Integrate the play.fun SDK**

**3. Submit and launch your playcoin**

**4. Earn from every trade of your game's playcoin**

***

### Build with AI Agents

The fastest way to build and ship a game on play.fun is with **Game Creator** - an agent skill that turns AI coding assistants into full game studios. One command handles scaffolding, design, audio, deployment, and play.fun SDK integration.

**Install the agent skill:**

{% tabs %}
{% tab title="Claude Code" %}

```bash
npx skills add PlayableIntelligence/game-creator -a claude-code
```

{% endtab %}

{% tab title="Cursor" %}

```bash
npx skills add PlayableIntelligence/game-creator -a cursor
```

{% endtab %}

{% tab title="Codex" %}

```bash
npx skills add PlayableIntelligence/game-creator -a codex
```

{% endtab %}

{% tab title="Antigravity" %}

```bash
npx skills add PlayableIntelligence/game-creator -a antigravity
```

{% endtab %}

{% tab title="OpenClaw/Other" %}

```
npx skills add PlayableIntelligence/game-creator
```

{% endtab %}
{% endtabs %}

**Then just tell your agent:**

```
/make-game
```

The agent will scaffold a Phaser 3 or Three.js game, add procedural audio, polish the visuals, integrate the play.fun SDK for leaderboards and rewards, and deploy - all in one workflow.

**What it includes:**

* 9 skills, 8 commands, and 4 autonomous agents
* Phaser 3 (2D) and Three.js (3D) game engines
* Procedural audio generation (no audio files needed)
* Automated Playwright testing with visual QA
* One-click deploy to GitHub Pages or Vercel
* Built-in play.fun SDK monetization

[View documentation and example games](https://playableintelligence.github.io/game-creator/)

***

### Manual Integration

Already have a game? Here's how to integrate the play.fun SDK directly:

**Step 1: Build your JavaScript game**

Use any AI tool (Claude, ChatGPT, Cursor, etc.) to build your HTML/JavaScript game.

**Step 2: Prompt the AI to integrate play.fun**

Add the [play.fun SDK Implementation Guide](/integrations/ai-integration-guide.md) to your project and give your AI assistant this prompt:

> Read the [play.fun SDK Implementation Guide](/integrations/ai-integration-guide.md) and integrate the play.fun SDK into my game. Save points when \[describe when points should be saved - e.g., "the player dies", "a level is completed", "the game ends"].

The agent should:

* Add the SDK script and API key meta tag
* Initialize the SDK with the points widget
* Call `addPoints()` during gameplay
* Call `endGame()` when the round ends (this opens a blocking modal, so only call at end of session)

That's it! The SDK handles authentication automatically when ending the game.
