https://github.com/ely-s/dndboard
A simple board/map for dungeons and dragons with drag and drop
https://github.com/ely-s/dndboard
Last synced: 3 months ago
JSON representation
A simple board/map for dungeons and dragons with drag and drop
- Host: GitHub
- URL: https://github.com/ely-s/dndboard
- Owner: Ely-S
- License: unlicense
- Created: 2014-12-26T01:34:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-26T06:14:31.000Z (over 10 years ago)
- Last Synced: 2024-12-29T14:51:43.679Z (5 months ago)
- Language: JavaScript
- Size: 2.69 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
This is a little hack to make a d&d gameboard for use on a tablet among my friends.
Feel free to do what you want with the code. It's in the public domain.
## How To
Put Tilemaps in maps and pieces in pieces. I use Tiled to make maps.
The config file is data.js.
Add filenames of pieces to the pieces list and map data to the list of maps. It's in JSON.
e.g.
{
name: "Field",
src: "map.png",
twidth: 32,
theight: 32,
height: 100,
width: 100
},Where
* name is the name of the map.
* src is the filename of the map
* twidth is the pixel width of the tiles
* theight is the pixel height of the tiles
* and width and height are the number of tiles in each dimension of the grid