Advanced Java Game Programming / Edition 1

Paperback (Print)
Buy New
Buy New from
Used and New from Other Sellers
Used and New from Other Sellers
from $7.99
Usually ships in 1-2 business days
(Save 84%)
Other sellers (Paperback)
  • All (16) from $7.99   
  • New (11) from $8.90   
  • Used (5) from $7.99   


Advanced Java Game Programming teaches you how to create desktop and Internet computer games using the latest Java programming language techniques. Whereas other Java game programming books focus on introductory Java material, this book covers game programming for experienced Java developers.

David Wallace Croft, founder of the Game Developers Java Users Group (GameJUG), has assembled an open-source reusable game library—a Swing animation engine that allows developers to use these techniques and put out new games very rapidly.

The open-source game library also includes a reusable game deployment framework and a multiplayer networking library with HTTP firewall tunneling capability for applets. All of the code is open source, including the example games. The animation has been scrupulously tested and optimized in the Swing environment, and Croft clearly explains how the code works in great detail. The graphics and audio libraries used in the examples are public domain and may also be used royalty-free for creating new games.

Table of Contents

  1. Development Setup
  2. Deployment Frameworks
  3. Swing Animation
  4. Animation Library
  5. Advanced Graphics
  6. Persistent Data
  7. Game Architecture
  8. A* Algorithm
  9. HTTP Tunneling
  10. HTTP Polling
  11. HTTP Pulling
Read More Show Less

Product Details

  • ISBN-13: 9781590591239
  • Publisher: Apress
  • Publication date: 3/30/2004
  • Edition description: 2004
  • Edition number: 1
  • Pages: 584
  • Sales rank: 1,305,988
  • Product dimensions: 1.21 (w) x 7.50 (h) x 9.25 (d)

Meet the Author

David Wallace Croft is a Java software architect with a professional background in Java game development. He formerly served as the president of the Silicon Valley Java Users Group and is the founder of the Game Developers Java Users Group. Croft earned his bachelor's degree from the United States Air Force Academy in 1990 and his master's degree from the California Institute of Technology in 1995.

After a brief career in neural network chip design, he joined an online Internet multiplayer game startup in 1996 and has been programming in Java exclusively ever since. While writing this book, Croft taught Java 2D game programming within the Institute of Interactive Arts & Engineering program at the University of Texas at Dallas. In 2004, he transitioned from faculty to student and is now pursuing a doctorate in cognition and neuroscience in the School of Behavioral and Brain Sciences at the same university. His contact information is available at

Read More Show Less

Table of Contents

About the author
About the technical reviewer
Ch. 1 Development setup 1
Ch. 2 Deployment frameworks 35
Ch. 3 Swing animation 87
Ch. 4 Animation library 127
Ch. 5 Advanced graphics 185
Ch. 6 Persistent data 229
Ch. 7 Game architecture 279
Ch. 8 A[superscript *] algorithm 347
Ch. 9 HTTP tunneling 387
Ch. 10 HTTP polling 429
Ch. 11 HTTP pulling 487
App. A: Source code index 535
App. B: Introducing CVS 541
Index 549
Read More Show Less

Customer Reviews

Average Rating 4.5
( 3 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Anonymous

    Posted April 22, 2004

    Improves the viability of Java games

    To date, there has been little commercial game development under Java. I won't say none. But if you know anyone in a company writing games, the chances are high that it is in C++. The main problem is that the most lucrative games tend to be twitch games like Doom or Quake. For these, you need the utmost in CPU performance and screen rendering. Java fails on both counts. Its bytecode nature has a performance penalty on a typical Intel or AMD CPU. Plus its graphic libraries, while adequate, did not easily let the programmer have direct access to the graphics memory. But all is not lost. Croft's book will appeal to those who still wish to write Java games, despite the above caveats. For one thing, strategy or turn based games do not necessarily need the highest performance. Java is quite viable here. Plus, as he strongly points out, having a game written in pure Java, without even any JNI hooks, increases vastly the places where is can be played. Because it is far easier to install. Fewer (none!) extra libraries to drag along. And of course, there is the operating system independence. Another point in the favour of Java games is that there can be far less danger of security risks, compared to anything written in C or C++. By running a Java game inside a JVM, you gain this safety. Not absolute, surely, but still reassuring. Also, Croft devotes considerable space to the treatment of advanced graphics. He discards AWT, and sticks to Swing. This will be familiar to many current programmers who are not writing games. He describes how to use hardware accelerated images to improve the effective frame rate. And many other graphics techniques. Overall, very encouraging for games in Java. You might want to try it out.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted March 14, 2012

    No text was provided for this review.

  • Anonymous

    Posted April 27, 2009

    No text was provided for this review.

Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)