BitmapData. What is the best way to use it in...
Hi, I am using BitmapData to draw the objects in my game. But, I'm not sure I am using this in the best way.
In each class I have a draw method where I call a renderer where copy the pixels of my object to the game canvas.
I have an Avatar class and its contains a BitmapData instance. There is a method where I draw my character into the bitmapdata of this class and I apply the filters or visual modification I need frame by frame.
When I finish this process I copy the result to the main canvas. It is in a renderer class that contains another bitmapdata.
I believe this is not the best way to render the objects of a game.
Any help? How could I search about draw method in a videogame? Or anyone know a name of a book?