Create Minigame
When building a minigame you can add:
- A SlotMachineblock
- A WheelSpinnerblock (also called Wheel of fortune)
- Form fields
- General blocks
Adding a SlotMachine
Properties
| Property | Required | Type | Description | Default | 
|---|---|---|---|---|
| title | ✓ | string | The title of the slot machine | |
| description | string | The description of the slot machine | ||
| startBalance | integer | The starting balance of the user | 10 | |
| winningProbability | string | Set to Low,MediumorHigh | Medium | 
Example object
{
    "title": "Spin the slot machine",
    "description": "Try your luck!",
    "type": "SlotMachine",
    "startBalance": 1000,
    "winningProbability": "High"
}
Adding a WheelSpinner
Properties
| Property | Required | Type | Description | Default | 
|---|---|---|---|---|
| title | ✓ | string | The title of the wheel spinner | |
| description | string | The description of the wheel spinner | ||
| items | ✓ | object[] | An array of the items on the wheel, see WheelSpinnerItemproperties below | 
WheelSpinnerItem properties
| Property | Required | Type | Description | Default | 
|---|---|---|---|---|
| title | ✓ | string | The title of the item | |
| type | ✓ | string | Set to either Win,Loss, orFreeSpin | |
| percent | ✓ | integer | The percentage of the item on the wheel; 0-100 | |
| award | ✓ | string | The award the user gets | |
| backgroundColor | string | The background color of the item | rgba(255, 255, 255, 1) | |
| textColor | string | The text color of the item | rgba(0, 0, 0, 1) | |
| media | string | The URL of the media file | 
Example object
{
    "title": "Spin the wheel",
    "description": "Try your luck!",
    "type": "WheelSpinner",
    "items": [
        {
            "title": "Win 100$",
            "type": "Win",
            "percent": 50,
            "award": "100$"
        },
        {
            "title": "Lose 50$",
            "type": "Loss",
            "percent": 30,
            "award": "-50$"
        },
        {
            "title": "Free spin",
            "type": "FreeSpin",
            "percent": 20,
            "award": "Free spin"
        }
    ]
}
Full example
{
    "type": "Minigame",
    "build": {
        "title": "Minigame example (Builder API)",
        "blocks": [
            {
                "title": "Spin the slot machine",
                "description": "Try your luck!",
                "type": "SlotMachine",
                "startBalance": 1000,
                "winningProbability": "High"
            },
            {
                "title": "Spin the wheel",
                "description": "Try your luck!",
                "type": "WheelSpinner",
                "items": [
                    {
                        "title": "Win 100$",
                        "type": "Win",
                        "percent": 50,
                        "award": "100$"
                    },
                    {
                        "title": "Lose 50$",
                        "type": "Loss",
                        "percent": 30,
                        "award": "-50$"
                    },
                    {
                        "title": "Free spin",
                        "type": "FreeSpin",
                        "percent": 20,
                        "award": "Free spin"
                    }
                ]
            }
        ]
    }
}
Next steps
Now that you know the basics of building a minigame, you might want to learn how to:
- Add form fields to your Riddle
- Use the Ad block to monetize your Riddle or add Content blocks
- Define the publish settings: Enable DOI, email automation, add integrations, and more
- Define the preset and palette you want to use
- Build an advanced result page
- Add media, such as images, videos, and social media content
Table of Contents

