Sign in to follow this  

Board game input, irregular board

Recommended Posts

Hey guys, I have a quick question on how best to go about collecting and dealing with input in a board game setting. The biggest problem is that the 'spaces' on the board are irregularly shaped, placed, colored, and connected to each other. I've already built the board structure, so each space is aware of what it's adjacent to, etc. What I'm working with now is an image of the board and how to register which space the user clicks on. I'd really like to figure out the "right" way to go about this... but as of right now my gut reaction is this: Create a mask of the board (which I already have from my first attempt at this project a couple years ago), with each space being a different color. Then when the user clicks to go find that pixel, determine its color, and match it to a list of colors --> spaces. I'd love your input (haha) on the best way to go about this. Thanks!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this