Making Games with Python & Pygame

Making Games with

Python & Pygame

By Al Sweigart

Copyright ? 2012 by Albert Sweigart

Some Rights Reserved. ¨DMaking Games with Python & Pygame¡¬) is licensed under a Creative

Commons Attribution-Noncommercial-Share Alike 3.0 United States License.

You are free:

To Share ¡ª to copy, distribute, display, and perform the work

To Remix ¡ª to make derivative works

Under the following conditions:

Attribution ¡ª You must attribute the work in the manner specified by the author or

licensor (but not in any way that suggests that they endorse you or your use of the work).

(Visibly include the title and author's name in any excerpts of this work.)

Noncommercial ¡ª You may not use this work for commercial purposes.

Share Alike ¡ª If you alter, transform, or build upon this work, you may distribute

the resulting work only under the same or similar license to this one.

This summary is located here:

Your fair use and other rights are in no way affected by the above. There is a human-readable

summary of the Legal Code (the full license), located here:



Book Version 2

If you've downloaded this book from a torrent, it¡¯s probably out of date. Go

to to download the latest version.

ISBN (978-1469901732)

1st Edition

Email questions to the author: al@

For Calvin Chaos

Email questions to the author: al@

Who is this book for?

i

WHO IS THIS BOOK FOR?

When you get down to it, programming video games is just about lighting up pixels to make

pretty pictures appear on the screen in response to keyboard and mouse input.

And there are very few things that are as fun.

This book will teach you how to make graphical computer games in the Python programming

language using the Pygame library. This book assumes you know a little bit about Python or

programming in general. If you don¡¯t know how to program, you can learn by downloading the

free book ¨DInvent Your Own Computer Games with Python¡¬ from .

Or you can jump right into this book and mostly pick it up along the way.

This book is for the intermediate programmer who has learned what variables and loops are, but

now wants to know, ¨DWhat do actual game programs look like?¡¬ There was a long gap after I first

learned programming but didn¡¯t really know how to use that skill to make something cool. It¡¯s

my hope that the games in this book will give you enough ideas about how programs work to

provide a foundation to implement your own games.

The full text of this book is available in HTML or PDF format at

.

-Al Sweigart

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download