I just implemented double buffering into my game. What double buffering does is that, it stores a frame in the memory buffer as an image and then pastes the image when it draws the game. This avoids flickering which is normally encountered when drawing complicated scenes. The best thing was that, it required only 6 lines of code to do all that.
I just tested the game on my mobile, which is Nokia 3110c and the game is running smooth. I also made the game full screen, thus it looks much better than before. The next step will be to make the weapons work.
Friday, March 13, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment