FREE DOWNLOAD OPEN BOOKS

Making Games with Python & Pygame

Making Games with Python & Pygame

A guide to programming with graphics, animation, and sound

by Al Sweigart


DOWNLOAD EBOOK READ ONLINE SHARE BOOK QR CODE

Book Description

Making Games with Python & Pygame covers the Pygame library with the source code for 11 games. Making Games was written as a sequel for the same age range as Invent with Python. Once you have an understanding of the basics of Python programming, you can now expand your abilities using the Pygame library to make games with graphics, animation, and sound.

This book features seven different games that are clones of popular games that you've probably already played. The games are a lot more fun and interactive than the text-based games in Invent with Python, but are still fairly short. All of the programs are less than 600 lines long. This is pretty small when you consider that professional games you download or buy in a store can be hundreds of thousands of lines long. These games require an entire team of programmers and artists working with each other for months or years to make.

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

This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download Making Games with Python & Pygame ebook for free in PDF format (5.6 MB).

Report an issue

Table of Contents

Chapter 1
Installing Python and Pygame
1
Chapter 2
Pygame Basics
7
Chapter 3
Memory Puzzle
33
Chapter 4
Slide Puzzle
77
Chapter 5
Simulate
108
Chapter 6
Wormy
131
Chapter 7
Tetromino
153
Chapter 8
Squirrel Eat Squirrel
200
Chapter 9
Star Pusher
242
Chapter 10
Four Extra Games
289

Book Details

Subject
Computer Science
Publisher
CreateSpace
Published
2012
Pages
365
Edition
1
Language
English
ISBN13 Digital
9781469901732
ISBN10 Digital
1469901730
PDF Size
5.6 MB
License
CC BY-NC-SA

Book Hashtags

Related Books

Invent Your Own Computer Games with Python
Invent Your Own Computer Games with Python

by Al Sweigart

Invent Your Own Computer Games with Python teaches you how to program in the Python language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the examples. Games include Guess the Number, Hangman, Tic Tac Toe, and Reversi. This book also has an introduction to making games with 2D graph...

Programming for Computations - Python
Programming for Computations - Python

by Svein Linge, Hans Petter Langtangen

This book presents computer programming as a key method for solving mathematical problems. This second edition of the well-received book has been extensively revised: All code is now written in Python version 3.6 (no longer version 2.7). In addition, the two first chapters of the previous edition have been extended and split up into five new chapte...

Hacking Secret Ciphers with Python
Hacking Secret Ciphers with Python

by Al Sweigart

There are many books that teach beginners how to write secret messages using ciphers. There are a couple books that teach beginners how to hack ciphers. As far as I can tell, there are no books to teach beginners how to write programs to hack ciphers. This book fills that gap. This book is for complete beginners who do not know anything about en...

Programming for Computations - Python
Programming for Computations - Python

by Svein Linge, Hans Petter Langtangen

This book presents computer programming as a key method for solving mathematical problems. There are two versions of the book, one for MATLAB and one for Python. The book was inspired by the Springer book TCSE 6: A Primer on Scientific Programming with Python (by Langtangen), but the style is more accessible and concise, in keeping with the needs o...

Retro Gaming with Raspberry Pi
Retro Gaming with Raspberry Pi

by Bob Clagett, David Crookes, PJ Evans, Rosie Hattersley, KG Orphanides, Ruiz Brothers, Mark Vanstone

This open book shows you how to set up a Raspberry Pi to play classic games, and a whole lot more. Build your own portable console, full-size arcade cabinet, and pinball machine with our step-by-step guides. And learn how to program your own games, using Python and Pygame Zero. - Set up your Raspberry Pi for retro gaming - Emulate classic computers...

Fundamentals of Python Programming
Fundamentals of Python Programming

by Richard L. Halterman

Guido van Rossum created the Python programming language in the late 1980s. In contrast to other popular languages such as C, C++ , Java, and C#, Python strives to provide a simple but powerful syntax. Python is used for software development at companies and organizations such as Google, Yahoo, Facebook, CERN, Industrial Light and Magic, and NAS...