Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-06-2012, 06:49 PM   #1
Registered User
Join Date: Jul 2009
Posts: 28
Default 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.

For example,
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?

fulvio is offline   Reply With Quote
Old 03-07-2012, 01:01 PM   #2
Registered User
Join Date: Jul 2009
Posts: 28

Can anyone help me with a book? or a link?
fulvio is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:38 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.