This is a documentation for Board Game Arena: play board games online !
BGA Code Sharing: Difference between revisions
mNo edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 317: | Line 317: | ||
| https://github.com/AndyKerrison/bga-nile | | https://github.com/AndyKerrison/bga-nile | ||
| Andy_K | | Andy_K | ||
|- | |||
|Ninjan | |||
|https://github.com/dorukkicikoglu/bga-ninjan | |||
|fenadoruk | |||
|- | |- | ||
| Noir: Killer vs Inspector | | Noir: Killer vs Inspector | ||
Line 325: | Line 329: | ||
|https://github.com/quietmint/bga-nowboarding | |https://github.com/quietmint/bga-nowboarding | ||
|quietmint | |quietmint | ||
|- | |||
|Odin | |||
|https://github.com/dorukkicikoglu/bga-odin | |||
|fenadoruk | |||
|- | |- | ||
| Penny Press | | Penny Press | ||
Line 333: | Line 341: | ||
| https://github.com/Fnordistan/perikles | | https://github.com/Fnordistan/perikles | ||
| AmadanNaBriona | | AmadanNaBriona | ||
| | |||
|- | |- | ||
| P.I. | | P.I. |
Latest revision as of 14:40, 30 November 2024
This page is for listing of externally hosted bga projects, tools and resources, as well as internal project intended for sharing
NAME | CODE LINK | DESCRIPTION |
---|---|---|
Dice models and animation | ||
Die: 4 sided | https://codepen.io/mrkiffie/pen/doVZgW ; https://codepen.io/VictoriaLa/pen/JjZNezr | code pen |
Die: 6 sided | https://github.com/elaskavaia/bga-sharedcode ; https://codepen.io/VictoriaLa/pen/QWBBbwz | |
Die: 8 sided | https://codepen.io/VictoriaLa/pen/YzMPeGq | code pen |
Die: 12 sided (dodecahedron) | https://codepen.io/VictoriaLa/pen/xxLLxOP https://codepen.io/hoursgoby/pen/GRwQzxo | Code pen |
Die: 20 sided | https://codepen.io/vicentemundim/details/cenIh | Code pen |
Dice | Repo | Demo (not used yet) | Handle dice display and animation WORK IN PROGRESS Only d6 is started |
Moving object using CSS animation (mostly) | ||
Phantom object move on oversurface | https://codepen.io/VictoriaLa/pen/gORvdJo | This technique creates clone of the object it moves it on another surface. It works well when parents that css transform applies such as scale and rotate |
Move object directly using positioning | https://codepen.io/VictoriaLa/pen/dyzgKVX | This technique is modification of BGA framework method to allow mobile object not to have absolute position before or after the move (and uses css animation not dojo). Methods slideToObjectRelative, attachToNewObjectNoDestroy |
Responsive layout, zoom and navigation for game boards | ||
Flex Layout | https://codepen.io/VictoriaLa/pen/XWjJJgG | Example on how to create flexible layout just by using css |
Zoom | Repo | Demo (visible on Knarr, Azul, Abyss, ...) | Allow the user to zoom on the game board. Include the controls to zoom, and handle the scale applied to the HTML element. |
Jump to | Repo | Demo (visible on Knarr, Elawa) | Add floating controls to quickly jump to a player's table |
Algorithms | ||
Hex grid | tapestry,Tumbleweed,gaia project,Gold West | |
Shortest path on hex grid | memoir 44 | Dijkstra |
Largest area on hex grid | tapestry, ... | |
Largest area on square grid | king domino, ... | |
Tetris pieces | patchwork, ... | Matrix manupations to rotate, flip and fit tetris pieces |
Line of sights on hex grid | memoir 44 | Find intersecting hexes on a line between two cells |
Alternative implementations of BGA modules | ||
Scrollmap with zoom | https://github.com/yansnow78/bga_scrollmap | you can find it in cacao, ginkgopilis, sagani, bigmonster,dominoes, Carcassonne hunters and gatherers and many others. # improvements compare to scrollmap:
- add zoom capabilities - add possibility to adjust pan delta to tile size when clicking on arrows - allow zoom with scroll wheel. only allow zoom with wheel if alt or ctrl or shift are pressed by default. add possibility to select which key need to be pressed when zooming with wheel - allow pan/scroll and pinch zoom on smartphone. only allow 2 fingers to start scrolling by default, one finger is for page scrolling - make clickable area of buttons a bit bigger on smartphone - improve animation between game board and player bards thanks to an animation_div - add support to long click on buttons (continuous scroll or zoom or enlarge/reduce until button released) |
Scrollmap Plus | patchwork | Implementation with some bugs fixed, improved drag support and ability to use only one direction (i.e. only horizontal like carousel). Found in modules/extscrollmap.js |
Cards | Repo | Demo (visible on Knarr, King of Tokyo, Abyss, ...) | Alternative to BGA Stock component, using CSS transitions instead of dojo animations. |
Assorted stuff | ||
Help | Repo | Demo (visible on Knarr) | Add floating help buttons at the bottom left corner of the screen |
Projects
Add the game name, a link to repository and nickname of the developer on bga (same as used for dev forum), and short description. See Tools_and_tips_of_BGA_Studio#Version_Control for some suggestions on how and where to publish your code externally. Also see the boardgamearena topic on github.
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.
Projects on studio
Any developer can add themselves to a project as read-only from https://studio.boardgamearena.com/#!projects page (almost any project).
If it is not visible: a) it has no bgg id b) it is already published (use radio button to switch) c) it is an old game not developed on studio.
Other useful resources
Moved to Tools_and_tips_of_BGA_Studio