Hello everyone. I’ve been following these boards for a long time now, but this is my first post. I’m working on a side-scroller ala Double Dragon / Bad Dudes type and I owe a lot of my solutions to searching the great advice on this board.
Currently, I’m using a method to update graphics and having each class drawing it’s own graphics (i.e. map class, character class, resources class), which works pretty well…but not great. I was wondering if it’s faster to do it this way or to have one class grab the images from the other classes and perform all the rendering itself?
Another problem I’m having is the frame rate is fine walking around a level, jumping etc…but comes to a crashing hault when I fire a projectile. The projectiles are stored in a linked list and a location check is done on each update to remove them from the list once they’ve left the screen. Is a location check too much on each update, or is a linked list slow on drawing?
Any advice would be greatly appreciated. Thanks for the help.
Devon.