| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/game-2048", |
| 5 |
"title": "2048 Game", |
| 6 |
"category": "bkbg-interactive", |
| 7 |
"icon": "games", |
| 8 |
"description": "The classic sliding-tile 2048 puzzle. Swipe or use arrow keys to merge tiles and reach the 2048 tile.", |
| 9 |
"keywords": [ |
| 10 |
"2048", |
| 11 |
"game", |
| 12 |
"puzzle", |
| 13 |
"tiles", |
| 14 |
"merge", |
| 15 |
"sliding", |
| 16 |
"numbers" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-2048-game-editor", |
| 20 |
"style": "bkbg-2048-game-style", |
| 21 |
"viewScript": "bkbg-2048-game-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"title": { |
| 33 |
"type": "string", |
| 34 |
"default": "2048" |
| 35 |
}, |
| 36 |
"subtitle": { |
| 37 |
"type": "string", |
| 38 |
"default": "Combine tiles to reach 2048!" |
| 39 |
}, |
| 40 |
"fontSize": { |
| 41 |
"type": "number", |
| 42 |
"default": 36 |
| 43 |
}, |
| 44 |
"subtitleSize": { |
| 45 |
"type": "number", |
| 46 |
"default": 15 |
| 47 |
}, |
| 48 |
"titleTypo": { |
| 49 |
"type": "object", |
| 50 |
"default": {} |
| 51 |
}, |
| 52 |
"subtitleTypo": { |
| 53 |
"type": "object", |
| 54 |
"default": {} |
| 55 |
}, |
| 56 |
"boardSize": { |
| 57 |
"type": "number", |
| 58 |
"default": 380 |
| 59 |
}, |
| 60 |
"tileRadius": { |
| 61 |
"type": "number", |
| 62 |
"default": 8 |
| 63 |
}, |
| 64 |
"gridGap": { |
| 65 |
"type": "number", |
| 66 |
"default": 10 |
| 67 |
}, |
| 68 |
"showScore": { |
| 69 |
"type": "boolean", |
| 70 |
"default": true |
| 71 |
}, |
| 72 |
"showBestScore": { |
| 73 |
"type": "boolean", |
| 74 |
"default": true |
| 75 |
}, |
| 76 |
"animateTiles": { |
| 77 |
"type": "boolean", |
| 78 |
"default": true |
| 79 |
}, |
| 80 |
"gridBg": { |
| 81 |
"type": "string", |
| 82 |
"default": "#bbada0" |
| 83 |
}, |
| 84 |
"tileBg": { |
| 85 |
"type": "string", |
| 86 |
"default": "#cdc1b4" |
| 87 |
}, |
| 88 |
"sectionBg": { |
| 89 |
"type": "string", |
| 90 |
"default": "#fef9ee" |
| 91 |
}, |
| 92 |
"titleColor": { |
| 93 |
"type": "string", |
| 94 |
"default": "#776e65" |
| 95 |
}, |
| 96 |
"scoreHeaderBg": { |
| 97 |
"type": "string", |
| 98 |
"default": "#bbada0" |
| 99 |
}, |
| 100 |
"newGameBg": { |
| 101 |
"type": "string", |
| 102 |
"default": "#8f7a66" |
| 103 |
} |
| 104 |
} |
| 105 |
} |
| 106 |
|