Hi, I would like to pick your brains on this.
I am looking to develop a scoring system based on how much of your screenspace is filled with a color.
This is what I am thinking:
- bomb goes off, a random number of objects hits walls and other obstacles.
- if you do a "paint by numbers", draw a imaginary line from object to object
- you only draw the line between the "outer objects", so you'll end up a shape that is covering all your exploded objects.
- fill this shape with a solid color and find out how much percentage of your screenspace the shape takes up.
- if the explosion sent object all over the room, you will get a larger shape and higher score and vice versa if the explosion is not so remarkable.
I can draw this out if this looks like a mad mans ramblings, but if you get what I am after, please chime in with some advices.
Edit: I have the explosion working, but does not have a clue how to solve the rest on the list.
Thanks,
Tor M