Make games with Python, 2nd edition — out now!

Millions of us enjoy nothing more than spending hours racking up high scores on our favourite video games. But too few engage in an even more gratifying way to spend time — making them! The latest book from Raspberry Pi Press is the second edition of Sean M. Tracey’s Make games with Python, and we hope it inspires you to create games of your own.

An orange background with white abstract video game symbols with text. Text reads: Raspberry Pi Essentials, Second Edition, Make games with Python, Create your own entertainment with Raspberry Pi, and Sean M. Tracey.

Go from gamer to game developer

The Pygame library makes it easy to create games and interactive software with Python. In this book, you’ll learn the Pygame way to draw on screen, animate objects, react to user input, play sounds, and model physics and forces. Each chapter will add to your knowledge of Python game development, and along the way, you’ll gain a better understanding of the games you play. Not only that — you’ll learn enough to create almost any game you can imagine.

Two facing pages from the book, Make games with Python, second edition. The page on the left features text from the book and an image that is dominated by a black background, with a curved blue pixelated arc. The page on the right includes text from the book and an image with three distinct elements, a blue square, a green square, and a red square. An arrow extends from each square and is annotated with formulae that indicate the effect of acceleration on each shape.

As you work your way through the book, you’ll learn how to create shapes and move them on screen. From there, you’ll learn how to turn shapes into sprites — the characters, obstacles, and enemies in your game. You’ll make your sprites obey laws of physics that you define, and write code to react to collisions between sprites. In the final two chapters of the book, you’ll create your own shoot-em-up game and save the galaxy from invading enemies!

Two facing pages from the book, Make games with Python, second edition. The page on the left features text from the book and an image with a deep blue, starry space background. The foreground features a green, horizontal layout of pixelated, teal-coloured alien spaceship invaders. The player's spaceship is depicted at the bottom center. The page on the right features text from the book and a diagram with three panels. The first panel shows the game screen with numerous alien invaders approaching the player's spaceship. The second panel shows a matrix of ones and zeroes, and the third shows the same matrix with each one replaced by an alien invader, and each zero replaced by a blank space.

Tested to run on the latest Raspberry Pi hardware and operating system, the games and instructions in this book work on Windows, macOS, or Linux.

Get your copy today

Although we didn’t design this book for complete beginners to programming, beginners won’t find it too advanced either. This new title is now available at our online store — and in the offline store — for £19.99. You can also find it on Amazon UK or Amazon US. If you’ve written simple programs in Python (or a similar programming language) and can perform basic administrative tasks (creating files and navigating your computer’s file system) without too much difficulty, then you’re ready to get started.

The post Make games with Python, 2nd edition — out now! appeared first on Raspberry Pi.



from News - Raspberry Pi https://ift.tt/GKASZux

Comments

Popular Posts