Jump to content
  • Advertisement
Sign in to follow this  

Board game input, irregular board

This topic is 3918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!