I'll just repost this in case someone missed it ;-)
Just in case I wasn't clear I'll include the source..

It starts of fine, but quickly eats an enormous amount of memory..

Is it possible to use a single imageblock to lay out several identical shapes on the same canvas. I'm currently experimenting with my first shoes application and I just realized the bomb example here (http://hackety.org/2008/05/22/theImageBlockAtTheBottomOfShoes.html), confused me into an enormous memory leak. Calling the bomb function several times seems to create a new image every time.

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.

//Magnus

Attachment: app.rb
Description: Binary data

Reply via email to