This is a documentation for Board Game Arena: play board games online !

BGA Code Sharing

From Board Game Arena
Revision as of 22:23, 15 April 2020 by Tutchek (talk | contribs) (Added navigation)
Jump to navigation Jump to search

Game File Reference

Useful Components


  • Deck: a PHP component to manage cards (deck, hands, picking cards, moving cards, shuffle deck, ...).
  • 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).
  • Stock: a JS component to manage and display a set of game elements displayed at a position.
  • 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).

Undocumented component (if somebody knows please help with docs)

  • Wrapper: a JS component to wrap a <div> element around its child, even if these elements are absolute positioned.


Game Development Process

Guides for Common Topics

Miscellaneous Resources

This page is for listing of externally hosted bga projects, tools and resources, as well as internal project intended for sharing

Projects hosted not in studio

See the table a link and nickname of the developer on bga (same as used for dev forum), and short description

Important notice about artwork on BGA Open Source projects: original hi-resolution images from publishers must not be published on the repositories. In addition, it is better to specify that the images derivated from publishers artwork are copyrighted and cannot be licensed under a free license like Creative Commons.

Shared Code (not a game) Victoria_La
BoardGameArena Workbench (not a game) Daniel Holmes (dhau)
Assyria daikinee
The Battle for Hill 218 Daniel Holmes (dhau)
Bonbons Morgalad
Coup: City State quietmint
Eruption Andy_K
Florenza: The Card Game tarini
Hearts (Tutorial) Victoria_La
Incan Gold Morgalad
Marco Polo rcitaliano
Nile Andy_K
Noir: Killer vs Inspector ch huang
Penny Press A-dam
P.I., (mirror) Fabian Neumann (fa81)
Tablut Lucas-C & ntaffore
Takara Island Morgalad
Teotihuacan: City of Gods Trompetenhut

Projects on studio

Links to studio project which owner wish share as read only. Project owner please add you project here, dev nickname and short description if you would like to share it. For the projects below any developer can add themselves to a project as read-only from!projects page.

Shared Code!studiogame?game=sharedcode Victoria_La
Original BGA template!studiogame?game=template Victoria_La

Other useful resources