Copyright by Jonathan S. Harbour

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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 ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required