I tried out the tutorial.. the game is working perfectly but the screen still flickers a bit.. is it normal or am do I have to add anything to the code given in the tutorial?

If you used a swing timer to handle the repainting, it would work much better. I wrote this when I first started out with my tiny toolbox of code so I didn't understand the more efficient ways of writing a graphical applet

How did you guys get this to run, btw I am using the full version of NetBeans with everything installed because this is the output of a java error I get when I run the html file:

I tried out the tutorial.. the game is working perfectly but the screen still flickers a bit.. is it normal or am do I have to add anything to the code given in the tutorial?

If you used a swing timer to handle the repainting, it would work much better. I wrote this when I first started out with my tiny toolbox of code so I didn't understand the more efficient ways of writing a graphical applet

I used the timer given in your tutorial :

Timer time = new Timer(15, this);

Still getting the flicker

roachmmflhyr, on 03 September 2011 - 11:50 PM, said:

Luckless, on 02 September 2011 - 06:38 AM, said:

common_man, on 06 August 2011 - 01:07 PM, said:

I tried out the tutorial.. the game is working perfectly but the screen still flickers a bit.. is it normal or am do I have to add anything to the code given in the tutorial?

If you used a swing timer to handle the repainting, it would work much better. I wrote this when I first started out with my tiny toolbox of code so I didn't understand the more efficient ways of writing a graphical applet

How did you guys get this to run, btw I am using the full version of NetBeans with everything installed because this is the output of a java error I get when I run the html file:

I really love this tutorial, the way you teach java makes it really sink into my mind and make me learn it quickly. I made the game and messed around and made these changes:
-The Left hitter is now free to move across its half of the board using the mouse
-The Right hitter moves around its X axis too
-Added scoring with the formula score=(currentTime/1000)^1.4
-The ball is randomly placed in the game when it is reset to prevent too much repetitiveness
its at this link: http://www.iancraft....ancedPlay.shtml

I have one question: how would I make it so that when you lose a life (originally, when the pRight's "score" is increased by one), the white background of the gameboard flashes red for about half a second then reverts back to normal?

Hi people, I have followed this tutorial but when i tried to start the applet using eclipse it complies fine. But it shows a blank screen with Applet initialised. After awhile the game window shows up with the game over screen with a error Start: Applet not Initialised, what is wrong here? All the codes are fine and the html document is working correctly.

Hi people, I have followed this tutorial but when i tried to start the applet using eclipse it complies fine. But it shows a blank screen with Applet initialised. After awhile the game window shows up with the game over screen with a error Start: Applet not Initialised, what is wrong here? All the codes are fine and the html document is working correctly.

Same here, I'm using eclipse too have checked over the code several times and all that happens is a white screen with "Applet Initialized" In the Bottom corner. I just cant get it to work

The applet only loading a blank white page seems to be a reocurrance with using Eclipse as the compiler. If there are any suggestions as to why this might be occurring please let us new programmers know.