Jump to ratings and reviews
Rate this book

Coding Games in Python

Rate this book
A visual step-by-step guide to writing code in Python.

Beginners and experienced programmers can use Python to build and play computer games, from mind-bending brainteasers to crazy action games with explosive sound effects and 3-D graphics.

Each chapter in Coding Games in Python shows how to construct a complete working game in simple numbered steps. The book teaches how to use freely available resources, such as PyGame Zero and Blender, to add animations, music, scrolling backgrounds, 3-D scenery, and other pieces of professional wizardry to games. After building a game, instructions show how to adapt it using secret hacks and cheat codes. Instructions are illustrated with zany Minecraft-style pixel art.

Master the key concepts that programmers need to write code--not just in Python, but in all programming languages. Find out what bugs, loops, flags, strings, tuples, toggles, and turtles are. Learn how to plan and design the ultimate game--and then play it to destruction as you test and debug it.

With coding theory interwoven into the instructions for building each game, learning coding is made effortless and fun.

224 pages, Paperback

Published July 3, 2018

6 people are currently reading
50 people want to read

About the author

D.K. Publishing

9,152 books1,998 followers
Dorling Kindersley (DK) is a British multinational publishing company specializing in illustrated reference books for adults and children in 62 languages. It is part of Penguin Random House, a consumer publishing company jointly owned by Bertelsmann SE & Co. KGaA and Pearson PLC. Bertelsmann owns 53% of the company and Pearson owns 47%.

Established in 1974, DK publishes a range of titles in genres including travel (including Eyewitness Travel Guides), arts and crafts, business, history, cooking, gaming, gardening, health and fitness, natural history, parenting, science and reference. They also publish books for children, toddlers and babies, covering such topics as history, the human body, animals and activities, as well as licensed properties such as LEGO, Disney and DeLiSo, licensor of the toy Sophie la Girafe. DK has offices in New York, London, Munich, New Delhi, Toronto and Melbourne.

Source: Wikipedia.

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
15 (44%)
4 stars
13 (38%)
3 stars
6 (17%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Hồ Vinh.
102 reviews12 followers
April 5, 2025
The book has a very nice structuring of projects from easy to difficult. And it introduces Python programming concept along the way. Gamification is a sure way to spark the programming spirit in young kids.

Besides the 9 games, it shows the proper flow to design a game: comes up with a flow chart, wireframe, folder structuring for file management, and implementation. I likes the additional tips at the end of each game to create their variants and more challenging setup.

Below is my personal note of some important features:

Python modules:
- pygame
- pygame zero: simplified version.

Command to run: pgzrun script.py
Resources: dk.com/computercoding, Python Game Resource Pack
- you create an image folder for sprite, then use Actor() pointing to them so they could be drawn on screen -> apple.draw(), apple.collidepoint(), apple.colliderect(). Can switch image during execution to make it more interactive.
- a music folder.

Built-in Pygame Zero:
- update(): auto run 60 times a sec.
- draw(): redraw the game screen.
- screen.clear()
- screen.blit()
- animate() to move Actor, animation.stop()
- on_mouse_down(): when you click your moise.
- keyboard.left, keyboard.up: button pressed in keyboards.
- clock for scheduling of timer refresh.
- quit()
Profile Image for Ben.
2,729 reviews225 followers
May 31, 2022
I am game dev

I really enjoyed this book.

I never thought I'd be coding games in Python!

I am not much of a gamer.
In fact, the only games I play are games I code myself.

This is a great way to learn!

Would recommend.

4.8/5
2,072 reviews56 followers
April 5, 2023
Perhaps because this was written for kids it is broken down into learnable chunks rather than other books which give you a whole program. It also has better looking games than other books
Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.