I'm currently working on a snake clone and I create body parts each time it eats food. So, I create a new Bitmap for each new body part. However, when I lose, I need to erase every parts I created except the head and tail of the snake.
I use stage:removeChildAt method to remove everything from the scene. Does it frees memory of those objects or do I have to do something special with them ?
Comments
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
I'll take your pooling method in consideration. Thanks again.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Likes: antix
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: Apollo14