O'Reilly logo

Beginning Java SE 6 Game Programming, Third Edition 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

Chapter 3. Creating Your First Java Game

This chapter will give you a glimpse of what’s coming in the next few chapters while teaching you some of the basics of game creation. The game featured here was inspired by the classic Atari game of Asteroids. My first video game system was an Atari 2600, and I spent many hours with it. In this chapter, you’ll learn how to create a variation of this classic game, which will be the basis of a more advanced game later on when we get to Part III. This will also be our first really big applet chapter—learning how to build a Java applet-based game, and the specific source code features of an applet. We will return to using JFrame as well in upcoming chapters rather than focusing on just one or the other.

Here ...

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