i wonder if someone could give me some pointers to achieve this. My math skills are rubbish at best <img src="smileys/smiley5.gif" border="0" align="middle" />
<img src="http://dl.dropbox.com/u/1685424/areafill.jpg" border="0" />
The idea is to create an area at edit time using a number of cloned sprites. Then say how many blocks you need to fill this area.
At runtime the area is filled with the required number of random sized blocks.
Develop games in your browser. Powerful, performant & highly capable.
Well i have tried a few things now. I show the green blocks overlapping borders above which seems near on impossible to my logic.
I have got a bit closer by taking the blue area which is obviously 3 sprites and filling each one. It means there are borders but its a little easier to do.
Any suggestions still welcome of course <img src="smileys/smiley1.gif" border="0" align="middle" />