- Invent Your Own Computer Games with Python, 4th Edition
- Downloads & Online Tools
- Read the Book Online
- Receive a Free Review Copy
- Invent Your Own Computer Games with Python
- A beginner’s guide to computer programming in Python
- Subscribe to new books via dBooks.org telegram channel
- Book Description
- Saved searches
- Use saved searches to filter your results more quickly
- License
- PacktPublishing/Learning-Python-by-building-games
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
Invent Your Own Computer Games with Python, 4th Edition
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 graphics using the Pygame framework.
«It’s a great introduction to Python and a great introduction to building fairly simple but interesting games. The author’s not just a talented coder, but a Python maestro. And his programming techniques provide good lessons on how to approach programming tasks.»
«Games are a great way to engage kids, and Python is a perfect language for them to see immediate results on the screen as they code. Invent Your Own Computer Games with Python should be a hit.»
Downloads & Online Tools
Read the Book Online
- Introduction
- Chapter 1 — The Interactive Shell
- Chapter 2 — Writing Programs
- Chapter 3 — Guess the Number
- Chapter 4 — A Joke-Telling Program
- Chapter 5 — Dragon Realm
- Chapter 6 — Using the Debugger
- Chapter 7 — Designing Hangman with Flowcharts
- Chapter 8 — Writing the Hangman Code
- Chapter 9 — Extending Hangman
- Chapter 10 — Tic-Tac-Toe
- Chapter 11 — The Bagels Deduction Game
- Chapter 12 — The Cartesian Coordinate System
- Chapter 13 — Sonar Treasure Hunt
- Chapter 14 — Caesar Cipher
- Chapter 15 — The Reversegam Game
- Chapter 16 — Reversegam AI Simulation
- Chapter 17 — Creating Graphics
- Chapter 18 — Animating Graphics
- Chapter 19 — Collision Detection
- Chapter 20 — Using Sounds And Images
- Chapter 21 — A Dodger Game with Sounds and Images
Receive a Free Review Copy
If you’d like to receive a free print copy of Invent Your Own Computer Games with Python, 4th Edition, please fill out the form at https://goo.gl/forms/u1PoLWLRl6fZ7nQX2. Please specify you want «Invent Your Own Computer Games with Python». You’ll receive a free ebook to read, and upon posting a review to Amazon, you will receive a complementary print review copy of the book. (UPDATE: There’s been a large amount of interest, and I can’t guarantee you’ll get a print book. However, I can definitely send you an ebook to review.)
To demonstrate that you will be able to write a review, please send me a link to an Amazon, Goodreads, or Powells review you have written before. If you haven’t written an Amazon review before, please explicitly tell me in your email you have an Amazon account and can post reviews. Also, please include the word «walrus» in the subject of your email so I know you read this. I’m happy to send out books to reviewers, but I can only respond to serious inquiries from folks who have read these instructions.
Please post an honest review. Posting a negative review will not impact whether or not you get a free print book. The only requirements are that the review be a minimum of 100 words, you must live within the United States (due to shipping costs), you must have purchased $50 off Amazon in the last year (Amazon has this requirement before you can write a review), and that you email me first before writing the review.
BLACK LIVES MATTER | TRANS RIGHTS ARE HUMAN RIGHTS | TAX THE RICH
Invent Your Own Computer Games with Python
A beginner’s guide to computer programming in Python
Subscribe to new books via dBooks.org telegram channel
Book Description
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 graphics using the Pygame framework.
Programming isn’t hard. But it is hard to find learning materials that teach you to do interesting things with programming. Other computer books go over many topics most newbie coders don’t need. This book will teach you how to program your own computer games. You’ll learn a useful skill and have fun games to show for it!
This book is for:
— Complete beginners who want to teach themselves computer programming, even if they have no previous experience programming.
— Kids and teenagers who want to learn programming by creating games.
— Adults and teachers who wish to teach others programming.
— Anyone, young or old, who wants to learn how to program by learning a professional programming language.
This open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download Invent Your Own Computer Games with Python ebook for free in PDF format (3.2 MB).
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Learning Python by building Games, published by Packt
License
PacktPublishing/Learning-Python-by-building-games
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Learning Python by Building Games
This is the code repository for Learning Python by Building Games, published by Packt.
A beginner’s guide to Python programming and game development
A fun and interactive way to get started with the Python language and its libraries is by getting hands-on with game development. Learning Python by Building Games brings you the best of both worlds. The book will first introduce you to Python fundamentals, which you will then use to develop a basic game. You’ll gradually explore the different Python libraries best suited for game development such as Pygame, Pyglet, and PyOpenGL. From building game characters through to using 3D animation techniques, you’ll discover how to create an aesthetic game environment. In addition to this, you’ll focus on game physics to give your effects a realistic feel, complete with movements and collisions. The book will also cover how you can use particle systems to simulate phenomena such as an explosion or smoke. In later chapters, you will gain insights into object-oriented programming by modifying a snake game, along with exploring GUI programming to build a user interface with Python’s turtle module.
This book covers the following exciting features:
- Explore core Python concepts by understanding Python libraries
- Build your first 2D game using Python scripting
- Understand concepts such as decorators and properties in the Python ecosystem
- Create animations and movements by building a Flappy Bird-like game
- Design game objects and characters using Pygame, PyOpenGL, and Pymunk
If you feel this book is for you, get your copy today!
Instructions and Navigations
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
n = int(input("Enter any number")) for i in range(1,100): if i == n: print(i) break
Following is what you need for this book: If you are completely new to Python or game programming and want to develop your programming skills, then this book is for you. The book also acts as a refresher for those who already have experience of using Python and want to learn how to build exciting games.
With the following software and hardware list you can run all code files present in the book (Chapter 1-16).
Software and Hardware List
Chapter | Software required | OS required |
---|---|---|
1 | Open Source Python installer version | Windows, Mac OS X, and Linux (Any) |
3.5+ is required | ||
1 | Open Source IDLE (Python pre-installed) | Windows, Mac OS X, and Linux (Any) |
2 | Python version 3.5+ | Windows, Mac OS X, and Linux (Any) |
3 to 4 | Python IDLE (comes preinstalled with python) | Windows, Mac OS X, and Linux (Any) |
5 | Open Source Curses Library[version 2.0+] | Windows, Mac OS X, and Linux (Any) |
6 to 7 | Python IDLE (comes preinstalled with python) | Windows, Mac OS X, and Linux (Any) |
8 | Python IDLE (comes preinstalled with python)/ | Windows, Mac OS X, and Linux (Any) |
turtle library (comes prebuilt) | ||
9 to 10 | Python IDLE (comes preinstalled with python) | Windows, Mac OS X, and Linux (Any) |
11 | Pycharm IDE Community Version 2018-2019.2+ | Windows, Mac OS X, and Linux (Any) |
11 to 13 | Pygame Library version 1.9.6[Python version 3.5+] | Windows, Mac OS X, and Linux (Any) |
14 | PyopenGL library version 3.1.0 | Windows, Mac OS X, and Linux (Any) |
15 | Pycharm IDE Community Version 2018-2019.2+ | Windows, Mac OS X, and Linux (Any) |
15 | Pymunk Library version 5.5.0 | Windows, Mac OS X, and Linux (Any) |
16 | Pygame Library version 1.9.6[Python version 3.5+] | Windows, Mac OS X, and Linux (Any) |
Click on the following link to see the Code in Action:
Sachin Kafle is a computer engineer from Tribhuvan University, Nepal, and a programming instructor currently living in Kathmandu. He is the founder of Bitfourstack Technologies, a software company that provides services including automation for real-time problems in businesses. One of his courses, named Python Game Development, is the best seller on many e-learning websites. His interests lie in software development and integration practices in the areas of computation and quantitative fields of trade. He has been utilizing his expertise in Python, C, Java, and C# by teaching since 2012. He has been a source of motivation to younger people, and even his peers, regardless of their educational background, who are embarking on their journey in programming.
Click here if you have any feedback or suggestions.