Show HN: I built a virtual tabletop for playing Dungeons and Dragons (opens in a new tab)diceright.com
395 pointsDiceright 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
Earlier commentsThere are a few bad tabletops out there. This one seems like it actually had a lot of thought put in! But it's hard to tell apart from the others at a glance. The videos aren't really readable on a phone and the paragraphs don't convey how each feature works.
And if you do get a chance to check it out on desktop, I'd love to know what you think.
It strikes me as slightly ironic, since games like 40k are traditionally extremely high $ investment hobbies, so seemingly a good market for the side-hustle tech crowd.
I really don’t think games workshop has the corporate culture to catch this wave though, which makes the prospect of a IP lawsuit a big deterrent to even OS work.
Msg me if you want a link to my last pass at it as a react app. Got slowed down figuring out how to offload work onto the server efficiently, and also daunted at the prospect of translating all the simpler unit rules into JSON. Of course, with LLMs, that task just became about 1000x easier :)
Unit rules are a special problem--Wahapedia has a csv download of unit and weapon rules.. I think there were several thousand in 9th edition.
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.
I find that players don't care too much about the map other than figuring out where they are in relation to the enemies and suchlike.
All comments shown.
Couldn't load more comments. Check your connection and try again.