Copyright by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

Chapter 14. Galactic War: Entity Management

You have learned the basics of web game programming in previous chapters, and you have been building the Galactic War game here in Part III. The source code for an applet-based game is becoming a bit tedious at this point. You’ve seen that there is a lot of code that does not change very much from one game to the next, now that you know how to write a typical game in Java. Aren’t you getting tired of seeing the key and mouse handlers in every code listing? I sure am! I don’t want to enforce too much structure for your own game projects, but I think it will be helpful to add some organization to the code.

There are a lot of events and methods that must be called and monitored regularly, and since this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required