This is a documentation for Board Game Arena: play board games online !
BGA Code Sharing: Difference between revisions
Line 11: | Line 11: | ||
==== 4 sided ==== | ==== 4 sided ==== | ||
Code | Code pen https://codepen.io/mrkiffie/pen/doVZgW | ||
==== 6 sided ==== | ==== 6 sided ==== | ||
Line 18: | Line 18: | ||
==== 12 sided (dodecahedron) ==== | ==== 12 sided (dodecahedron) ==== | ||
code pen https://codepen.io/VictoriaLa/pen/xxLLxOP | code pen https://codepen.io/VictoriaLa/pen/xxLLxOP | ||
==== 20 sided ==== | |||
Code pen https://codepen.io/vicentemundim/details/cenIh | |||
=== Moving object using CSS animation (mostly) === | === Moving object using CSS animation (mostly) === |
Revision as of 16:46, 30 October 2021
This page is for listing of externally hosted bga projects, tools and resources, as well as internal project intended for sharing
Dice models and animation
The following links contain 3D model of dice and associated css animation
4 sided
Code pen https://codepen.io/mrkiffie/pen/doVZgW
6 sided
Code can be found in https://github.com/elaskavaia/bga-sharedcode
12 sided (dodecahedron)
code pen https://codepen.io/VictoriaLa/pen/xxLLxOP
20 sided
Code pen https://codepen.io/vicentemundim/details/cenIh
Moving object using CSS animation (mostly)
Phantom object move on oversurface
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
https://codepen.io/VictoriaLa/pen/gORvdJo
Move object directly using positioning
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)
Code can be found in https://github.com/elaskavaia/bga-sharedcode Methods slideToObjectRelative, slideToObjectAbsolute
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. 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 tag 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 http://en.studio.boardgamearena.com/#!projects page (almost any project). The list below are no-games which do not have bgg id and not showing up there.
NAME | CODE LINK | DEVELOPER |
---|---|---|
Shared Code | http://en.studio.boardgamearena.com/#!studiogame?game=sharedcode | Victoria_La |
Original BGA template | http://en.studio.boardgamearena.com/#!studiogame?game=template | Victoria_La |
Other useful resources
Moved to Tools_and_tips_of_BGA_Studio