I am making a game.
You can try what i have done so far
here But i have some problems about flickering in the game.
First one is when the frames of the player are drawn the first time it flickers
alot. I have no idea why it does that because i load all the images when the game starts.
Then the other problem is when I draw the background which consists of many 20X20 pictures. If i have the game like 500x500 it works good but if i have it 1000x1000 it flickers in the lower right corner. Here is the code i use to paint the background:
I use this for painting:
Is there something wrong in painting this way. I have modified my game from a pacman tutorial which had painting done this way.