Original Post
I''m working on an overhead scrolling shooter, and I''m starting to work on the object processing code. I have a linked list set up that holds the objects, and I have it sorted so it''s easy to process only the objects currently in view. But I have one question about what would be considered an "acceptable" design method. I can either traverse the list once, and move the objects and draw them at the same time, or I can traverse it twice, once to move them and again to draw them. The second method would let me have seperate sections of the main loop to process objects and to draw them, which is what I did in my last game, and what most people seem to do, but it would be slower too. Is it an OK thing to do to draw the objects after processing them, thereby not drawing everything at the same time, or is it best to stay away from that and draw everything at the same time (I guess, from a design perspective)?
I''m thinking it wont make any difference, but I just wanted to get your opinions on it.
------------------------------
Jonathan Little
invader@hushmail.com
http://www.crosswinds.net/~uselessknowledge