Make games with Python
eBook - ePub

Make games with Python

Create your own entertainment with Raspberry Pi

  1. 160 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Make games with Python

Create your own entertainment with Raspberry Pi

About this book

Learning to code your own shoot-'em-up game is infinitely more satisfying than beating any end-of-level boss. While millions of us enjoy nothing more than spending hours racking up high scores on our favourite video games, too few are exposed to an even more gratifying way to spend time — making them.

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.

This book teaches Python and Pygame development, helping you to understand the games you play and create almost anything your imagination can come up with. As you work your way up to creating your own shoot-‘em-up game, you’ll learn how to:

  • Create shapes and paths
  • Move sprites and detect collisions
  • Handle keyboard, mouse, and gamepad input
  • Add sound and music
  • Simulate physics and forces

Although this book isn't aimed at complete programming beginners, it isn’t too advanced either. If you've written programs in Python (or a similar programming language) and can perform basic administrative tasks — such as creating files and navigating your computer's file system — without too much difficulty, then you're ready to get started.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Make games with Python by Sean M. Tracey in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Graphics. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Make games with Python, 2nd Edition
  2. Copyright Page
  3. Welcome
  4. About the author
  5. Colophon
  6. Chapter 1: Draw Shapes and Paths
  7. Chapter 2: Animate Shapes and Paths
  8. Chapter 3: Take control: keyboard, mouse, and gamepad
  9. Chapter 4: Your first game
  10. Chapter 5: Pygame Soundboard
  11. Chapter 6: Physics and forces
  12. Chapter 7: Physics and Collisions
  13. Chapter 8: Fred’s Bad Day
  14. Chapter 9: The Aliens Are Trying to Kill Me!
  15. Chapter 10: The Aliens Are Here and They’re Coming in Waves!