Jump to content
  • Advertisement
Sign in to follow this  

Board game input, irregular board

This topic is 3998 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!