Fill the spaces

Hello,

I am currently trying to make an app that displays shapes, your goal is to fill in the space on the screen. All the space. Do you know how i can do this? So lets same you have many little triangle shapes, you would then need to fill the screen with triangles, your goal being filling up all the space and not letting any background to show. So what i basically want is to be able to say that if my objects don’t fill up the whole screen it will subtract a number off points depending on how much space they did not fill up. How can i make that happen?

I can’t figure this one out. If i am being a little vague, please notify me. :slight_smile:

Thanks, help is really appreciated!

  • Michael [import]uid: 23689 topic_id: 20899 reply_id: 320899[/import]
  • Hi Michael,

Sounds like a puzzle to me, there is some code in
the code exchange that may help you in the right direction…

http://developer.anscamobile.com/code/puzzleapp

Hope that help you :wink:
Regards,
Larry
“Follow your Dreams!”
[import]uid: 107633 topic_id: 20899 reply_id: 82407[/import]

Thanks for your help, but that’s not completely it. I wanted to be able to have shapes just like the puzzle but if you do not fill the whole screen it will subtract points therefore matching the proportional amount. I just want to know how i can do this. [import]uid: 23689 topic_id: 20899 reply_id: 82411[/import]

Tricky one…if you have standard shapes like squares, rectangles, triangles, circles, hexagons etc, you could calculate their area (in pixels) using the appropriate maths, and subtract the total of all shapes in the playing area from the total available space.

Ths should work if the shapes are going to have a physical presence and are not allowed to overlap. [import]uid: 93133 topic_id: 20899 reply_id: 82450[/import]