Free Sample
+ Collection

Instant Pygame for Python Game Development How-to

Ivan Idris

Create engaging and fun games with Pygame, Python's Game development library
RRP $9.99

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782162865
Paperback76 pages

About This Book

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Quickly develop interactive games by utilizing features that give you a great user experience
  • Create your own games with realistic examples and easy to follow instructions
  • Learn about the game development process, from installing simple games to more complicated multiplayer games, ensuring compatibility with mobile devices


Who This Book Is For

This book is aimed at Python Game Developers who want to create games with Pygame quickly and easily and get familiar with important aspects of it. Experience with Python is assumed. Basic Game development experience would help but isn't necessary.

Table of Contents

Chapter 1: Instant Pygame for Python Game Development How-to
Preparing your development environment (Simple)
Running a simple game (Simple)
Drawing with Pygame (Simple)
Animating objects (Simple)
Using fonts (Simple)
Using Matplotlib with Pygame (Simple)
Accessing surface pixel data (Intermediate)
Accessing sound data (Simple)
Playing a movie (Intermediate)
Pygame on Android (Intermediate)
Artificial intelligence (Intermediate)
Drawing sprites (Intermediate)
Using OpenGL with Pygame (Advanced)
Detecting collisions (Intermediate)
Adding networking functionality (Advanced)
Debugging your game (Intermediate)
Profiling your code (Intermediate)
Puzzle game with Pygame (Advanced)
Simulating with Pygame (Advanced)

What You Will Learn

  • Install and prepare the basic setup to get started with the technology on various operating systems including Linux, Mac OS X, and Windows.
  • Learn how you can develop real- time multiplayer games and integrate them with social networks using Twisted
  • Overcome the limitations of mobile browsers allowing you to take full advantage of their various features with minimum hassle
  • Introduction to the drawing functionality of Pygame and getting into more dynamic animating functions
  • Understand and use Sprites, OpenGL , and detecting Collisions with Pygame
  • Interesting examples to understand Simulation and Animation
  • Display various fonts and learn more about the time and memory usage and its management
  • Integrate with the open source library, Matplotlib to create various interesting plots.
  • Accessg data to create excellent sound effects and music to go with the games

In Detail

Pygame is a library created to make multimedia software documenting easy to design. It adds functionality on top of the excellent SDL library. This allows you to create fully featured games and multimedia programs in the Python language. Pygame comes with functions and tools that will help you create a great user experience.

"Instant Pygame for Python Game Development How-to" is written in a concise and result-oriented format. Leading you through practical recipes, you’ll find that this essential reference guide helps you to create visually appealing and thrilling games with a few clicks.

This book starts with the basic instructions to install Pygame on different servers. It then goes into creating a sample game and explaining the features of drawing, animating, using fonts and Matplotlib with Pygame. The book then takes you through recipes to get access to some great sound and graphic effects. Giving you the steps to allow you to configure these games on Android and other networks, it ends with a walkthrough of the features of Sprites, OpenGL, and Simulation.


Read More