When building a minigame you can add:
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 , Medium or High | Medium |
{
"title": "Spin the slot machine",
"description": "Try your luck!",
"type": "SlotMachine",
"startBalance": 1000,
"winningProbability": "High"
}
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 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"
}
]
}
{
"type": "Minigame",
"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"
}
]
}
]
}