Invent Your Own Computer Games with Python, 2nd Edition
“Invent Your Own Computer Games with Python” is a free book (as in, open source) and a free eBook (as in, no cost to download) that teaches you how to program in the Python programming language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the example.
“Invent with Python” was written to be understandable by kids as young as 10 to 12 years old, although it is great for anyone of any age who has never programmed before.
This second edition has revised and expanded content, including a Pygame tutorial library to make games with graphics, animation, and sound.
“This book is totally appropriate for someone who has never programmed before. Everything is explained, right from the ground up, in a lively, interesting style which doesn’t dumb things down.”
— J. Hartley, tartley.com
“I am a college professor who occasionally teaches courses for liberal arts students. […] I offered a game programming course in the Python programming language using Sweigart’s book. The students loved this book. It starts at the very beginning and leads them, game by fascinating game, to become highly capable programmers.”
— Dr. Robert C. Gann
“I picked up a copy of this book and was in all honesty blown away by how easy the concepts of python are introduced to the reader in a clear and concise manner. The fact that you are also making small little games with your programs throughout this book helps with motivation as tasks get harder and harder – it keeps it all fun while learning. […] I e-mailed the author and got great personal help to advance further – that was of course much appreciated as well.”
— Tor Hagen
“This Spring, we used this book for six weeks of a homeschool “Physics and Modeling” class. I am extremely happy with the book. It received many compliments from the students for ease of use, the hands-on approach, and the fact that game programming starts right away.”
— Maria A. Droujkova naturalmath.com
“I used to write a column on a greek magazine about learning Python and PyGame. […] Since I found this book, every time the topic of learning programming is mentioned – especially from a person interested on making games – I point people to it.”
— Konstantinos Michalopoulos