Skip to main content

Making Games with Python & Pygame - 1

A free book covering the Pygame library for beginner and intermediate Python programmers. Includes the source for 11 game clones including Tetris, Bejewled, Othello, Connect Four, and others.


Al Sweigart
(alsweigart)

"Making Games with Python & Pygame" is a free book that teaches the reader how to make games with the Pygame library. The book is aimed at beginner and intermediate Python programmers who have the basics of Python but want to start learning how to make games with graphics, animation, and sound.

The book features the source code to 11 games. These games are clones of classics such as Nibbles, Tetris, Simon, Bejeweled, Othello, Connect Four, Flood It, and others.

The book and the programs are open source, and are available under a Creative Commons Attribution-Noncommercial-Share Alike license, meaning they are free to copy and distribute. A print copy can be bought on Amazon.com for $25.

PDF: http://inventwithpython.com/makinggames.pdf

HTML: http://inventwithpython.com/pygame/chapters/

Links

Home Page
http://inventwithpython.com/pygame
Source
http://inventwithpython.com/makinggames.pdf

Releases

Making Games with Python & Pygame 1 — 3 Jul, 2012

Pygame.org account Comments

  • nick panagakis 2012-08-12 06:19:13

    i bought a paperback copy off amazon.

    Jonny Bravo 2015-04-26 22:26:56

    though owning the book still gives you a feeling of ownership

  • martibttbtt 2012-09-27 12:31:17

    excelent job! but... i don't understand English xd

  • Asdrúbal Iván Suárez Rivera 2012-10-13 23:57:54

    Wonderful job my friend!! I'll read this

  • abdulahi 2012-11-18 14:13:55

    i can not believe this

  • Ablom 2013-03-20 07:30:42

    Why not in OOP style?)

  • Benjamin Raskin 2013-04-09 00:16:48

    Can i get this in pdf form somehow?

    nerdwaller 2013-04-14 04:10:35

    Yes, here: http://inventwithpython.com/py... - But if you find value buy it to support good work like this!

  • gogo 2013-05-01 06:17:47

    very good book for people who have never use pygame

  • jabberwocky 2013-06-25 12:39:08

    This book is really helpful,and thx for sharing it

  • BurningWood 2013-10-13 01:51:09

    This is really amazing stuff, I was studying javascript and using Construct 2, but this seems a lot more versatile :D

  • Ben 2013-11-25 19:38:25

    I made a game when you had to shoot the badguys until the time was up
    but if the bunys get killed you faill

  • SirChristian123 2014-02-25 00:32:42

    Please help, is the book use Python 2 or Python 3?

  • nathaniel 2014-12-23 02:07:44

    i want to make a 3d graphics game!!!!!!!!!!

  • Jonny Bravo 2015-04-26 22:23:47

    You know you CAN read the book online for free!