Jump to content
  • Advertisement
Sign in to follow this  
Chiezy

Calculating used space on a gaming board

This topic is 831 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 there I just can't come up with a good solution to my problem.

I ma not exactly sure how to explain so i'll just go with examples.

http://imgur.com/a/xhDka

Finding out which side has most free spots on this one is pretty easy.

But what about this one? What would be a good solution to calculate which part has the most free pixels?

http://imgur.com/ALtsF1W

 

I am helpful for anything.

Thank you very much

Edited by Chiezy

Share this post


Link to post
Share on other sites
Advertisement

You can subdivide the regions with axis aligned rectangles (it seems the section of your cuts are either vertical or horizontal) and quite easily compute the area of the regions by summing all the areas of the rectangles.  

Share this post


Link to post
Share on other sites
I think he is referring to that game concept where you try to carve out bits from the play area using horizontal and vertical lines. There is also a ball-like enemy (usually following a predictable path because it just bounces off whenever it hits a wall) in the play area and when it hits you or the line you are drawing you have lost. It used to be a popular game for the gameboy when I was young but I just cannot remember the name.

Still, that's all conjecture since the OP does not describe anything in a reasonable way.

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!