12A SHIP THAT FIRES BULLETS
Let’s build a game! We’ll use Pygame, a collection of fun, powerful Python modules that manage graphics, animation, and even sound, making it easier for you to build sophisticated games. With Pygame handling tasks like drawing images to the screen, you can skip much of the tedious, difficult coding and focus on the higher-level logic of game dynamics.
In this chapter, you’ll set up Pygame and then create a ship that moves right and left, and fires bullets in response to player input. In the next two chapters, you’ll create a fleet of aliens to destroy, and then continue to make refinements, such as setting limits on ...
Get Python Crash Course now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.