Hello. I’m a new member here.
While I’m not a newbie in Java, I’ve just started to game programming. And I need your advices on this.
In the resources page of the site (http://www.java-gaming.org/index.php?action=resources), I’ve seen that “Killer Game Programming in Java - Andrew Davison” is one of the recommended books.
I have been trying to read this book for a while but I have discovered that the animation framework presented in the second chapter of this book is wrong. Because in Java tutorial it’s said that GUI components should be accessed (created, modified, queried, etc.) only in EDT (Event Dispatch Thread). But in Killer Game Programming, animation is controlled by another thread. And it uses a technique named ‘Active Rendering’ which doesn’t event use method repaint. Instead, it tries to get graphics context of JFrame in order to render everything by itself. It uses JPanel from another thread therefore violates Swing’s single thread rule.
Seems like this book had already been outdated when it was printed. Because as far as I know the change in Swing rule was made in 2004.
Since you recommend this book to newbies, can you enlighten me? What should I do? Should I continue reading a wrong book? Am I the wrong one?