Owl Sams Teach Yourself Java 2 in 24 Hours

Hour 21: Playing Games with Java

NOTES AND CORRECTIONS

  • None

SOURCE FILES

READER QUESTIONS

  • Question: I am trying to write a ping-pong game for two players and I am having some difficulties in applying some of the commands. Can you spare me some time and send some Java programing code for ping-pong with explanation?
    Answer: Although I can't tackle that programming project for you, I can point you to some great sites that offer Java games with source code for you to take a look at. First, you should visit Gamelan, Developer.Com's directory of Java resources. Many of its programs include source code. Second, you should check out the site of Karl Hörnell, the best Java game programmer on the planet. He includes source code for every game he hasn't sold to someone else.

ACTIVITIES