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 12. Galactic War: Sprites and Collision Boxes

The goal of this chapter is to develop a way to handle the game objects moving around on the screen and to enhance the Galactic War game with some significant new gameplay features using sprites rather than just images and vectors.

Here are the specific topics you will learn about:

  • Upgrading Galactic War to a sprite-based game

  • Adding new artwork to the game

  • Adding new functionality to the gameplay

Creating the Project

The Galactic War game has so much potential that I’m eager to implement, but the game has been somewhat hobbled up to this point due to it being limited—first by vectors, then by simple bitmaps. Now that we have this useful new Sprite class available with some serious functionality ...

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