Hi, I've been learning how to program in
Java for a while now, and made a small game to see what I could implement (Here's the compiled version:
Burger)
I'm obviously doing something wrong with the screen refreshing, and I need a more efficient method. I made a separate
thread that repaints the screen, and it sleeps for 3 miliseconds. If I make it sleep more, the game is very slow (the guy moves one pixel at a time, by the way).
On certain computers, the game runs fine (you can get 40 + points). On others, you can barely get a piece of food before dying. Can anyone help me with this? I've heard of buffered images (I just use images) , but I have no idea how to use them.
Also, I wouldn't mind receiving some feedback on the game and what I should add