Lurker News
Diceright is a virtual tabletop for playing dungeons and dragons with friends on the web. You can watch a quick overview of how it works here: https://tinyurl.com/diceright. And there’s a list of the main features right on the homepage.

It’s a Ruby on Rails site that makes heavy use of action cable for keeping the maps and tokens in sync for all players. On the front end, I’m using HTML canvas for the maps and a js library called fabric.js for interacting with the canvas. Otherwise, just jQuery on the front end. I optimized it all to work on mobile too.
I built this as a side project for fun over of the past couple years. It took a lot longer than expected, but it was also a lot of fun. I did all the design / UX for it too which was a struggle at first but was a great learning experience.
Let me know what you think and if you have any questions. Thanks!

Comments (115) 35 threads

Show all comments

Showing thread 11 of 35

Capricorn24811 reply#
Very nice! Looks like a legit VTT and not a throwaway one. What were some of the hard things about this project that you didn't expect?
YakiSauce#
Thanks!

Man, so many things. I think maybe the hardest thing was really getting into the weeds of all the class/race features and modeling them all in a way that made sense to the user and would 'just work'.
There are features that add damage, but only under some circumstances. Features that change at different levels. Features where you get to pick between a few options and then they also change at different levels. Just a lot to model out. And a lot of hard decisions about how much to automate and how much to leave on the user.
Also, designing and building it all to work on mobile ended up being more than I expected because when adding new features I often had to go back and make it mobile friendly too.
Oh and doing the dynamic lighting (where you can add walls and lights to a map and 'see' what player tokens would see) was pretty tough because it involved learning some math to do those calculations. But that was also pretty fun.