On Thu, Jun 05, 2008 at 10:44:12PM +0200, Magnus Adamsson wrote:
> Is it possible to use a single imageblock to lay out several identical
> shapes on the same canvas.
>
> I could do
> @bomb = bomb 0, 0
>
> But if I just use @bomb.move to lay the bombs out I will need to make
> several images (one for each bomb), which would be wasteful.
Young man, I didn't intend to take so long to formulate a reply.
It's just: I really had to make up my mind about this and I was sort
of distracted by a guy who was holding a boom box and trying to ride
his bicycle. After that, things really came together!
Shoes.app do
@bomb = bomb 0, 0
5.times do |i|
image @bomb, :top => 20 * i, :left => 20
end
end
And you have six bombs in all. Not yet in any builds, just in the
git repo.
_why