Game File Reference
Useful Components
Official
- ItemManager: a PHP component to manage cards or other game items.
- PlayerCounter and TableCounter: PHP components to manage counters.
- Draggable: a JS component to manage drag'n'drop actions.
- Counter: a JS component to manage a counter that can increase/decrease (ex: player's score).
- ExpandableSection: a JS component to manage a rectangular block of HTML than can be displayed/hidden.
- Scrollmap: a JS component to manage a scrollable game area (useful when the game area can be infinite. Examples: Saboteur or Takenoko games).
- Zone: a JS component to manage a zone of the board where several game elements can come and leave, but should be well displayed together (See for example: token's places at Can't Stop).
- bga-zoom : a JS component for zoom controls.
- bga-animations : a JS component for animations.
- bga-cards : a JS component for cards.
- bga-dice : a JS component for dice.
- bga-autofit : a JS component to make text fit on a fixed size div.
- bga-score-sheet : a JS component to help you display an animated score sheet at the end of the game.
- bga-jump-to : a JS component to add board shortcuts
Deprecated
- Deck: a PHP component to manage cards (deck, hands, picking cards, moving cards, shuffle deck, ...).
- Stock: a JS component to manage and display a set of game elements displayed at a position.
Unofficial
Game Development Process
Guides for Common Topics
Miscellaneous Resources
The mainsite is built with compatibility for several old browsers.
We use a browserslist config to define the targeted browsers: last 2 versions, not dead, > 0.2%.
There are currently no hard rules about what you should target, but it is recommended to follow the same targets as the mainsite. You can use babel to compile your modern JavaScript code into backwards compatible code. Babel accepts a browserslist targets string, so you can use the targets above.
Current list
At time of writing, last 2 versions, not dead, > 0.2% refers to:
and_chr 113
and_ff 113
and_qq 13.1
and_uc 13.4
android 113
android 4.4.3-4.4.4
chrome 113
chrome 112
chrome 111
chrome 110
chrome 109
chrome 108
chrome 103
chrome 79
edge 113
edge 112
edge 111
firefox 113
firefox 112
firefox 111
ie 11
ios_saf 16.4
ios_saf 16.3
ios_saf 16.2
ios_saf 16.1
ios_saf 16.0
ios_saf 15.6
ios_saf 15.5
ios_saf 14.5-14.8
ios_saf 14.0-14.4
ios_saf 12.2-12.5
kaios 3.0-3.1
kaios 2.5
op_mini all
op_mob 73
opera 98
opera 97
opera 96
safari 16.4
safari 16.3
safari 16.2
safari 16.1
safari 15.6
safari 14.1
samsung 20
samsung 19.0