When building a minigame you can add:
| Property | Required | Type | Description | Default |
|---|
type | ✓ | string | Set to SlotMachine | |
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, Medium or High | Medium |
{
"title": "Spin the slot machine",
"description": "Try your luck!",
"type": "SlotMachine",
"startBalance": 1000,
"winningProbability": "High"
}
| Property | Required | Type | Description | Default |
|---|
type | ✓ | string | Set to WheelSpinner | |
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 WheelSpinnerItem properties below | |
| Property | Required | Type | Description | Default |
|---|
title | ✓ | string | The title of the item | |
type | ✓ | string | Set to either Win, Loss, or FreeSpin | |
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 | |
{
"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"
}
]
}
| Property | Required | Type | Description | Default |
|---|
type | ✓ | string | Set to Sudoku | |
title | ✓ | string | The title of the sudoku block | |
description | | string | The description of the sudoku block | |
media | | string | The URL of the media file | |
difficulty | | integer | The difficulty level of the sudoku; 0-100 | 50 |
areRulesVisible | | boolean | Whether the rules are visible to the user | true |
isConflictHighlightingAllowed | | boolean | Whether conflict highlighting is allowed | false |
isGuessCheckingAllowed | | boolean | Whether guess checking is allowed | false |
refreshInterval | | string | The interval in which the sudoku automatically refreshes; set to a value of: None, Daily, Weekly, or Monthly | None |
{
"title": "Sudoku Challenge",
"description": "Solve the puzzle!",
"type": "Sudoku",
"difficulty": 70,
"areRulesVisible": true,
"isConflictHighlightingAllowed": true,
"isGuessCheckingAllowed": true,
"refreshInterval": "Weekly"
}
{
"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"
}
]
},
{
"title": "Sudoku Challenge",
"description": "Solve the puzzle!",
"type": "Sudoku",
"difficulty": 70,
"areRulesVisible": true,
"isConflictHighlightingAllowed": true,
"isGuessCheckingAllowed": true,
"refreshInterval": "Weekly"
}
]
}
}
Now that you know the basics of building a minigame, you might want to learn how to: