Book Image

Learn Python Programming with Games [Video]

By : Burkhard Meier
Book Image

Learn Python Programming with Games [Video]

By: Burkhard Meier

Overview of this book

<p>Python is a powerful high-level, object-oriented programming language. This is a comprehensive guide on how to get started in Python and how you could learn it with the help of games.</p> <p>In the first section, we will be building our first game. We will use pure Python programming in combination with the built-in Python Turtle module. We will learn how to move our runner around a game screen which we’ll create. In section two, we will enhance what we have learned in section one by combining the power of Turtle Graphics with the tkinter framework. We will add scoring to our game, create obstacles and increase the speed of the game.</p> <p>In section three, we will install and use the PyGame module. PyGame is used to build professional games but we can start quite simple. We will be building a game with a player that runs and jumps within landscapes. We will learn how to use PyGame sprites and sprite sheets to animate our game. In the fourth section, we will use the PyGame module to build a three-dimensional game. We will build a starship and learn how to navigate it in space. We will explore several features of PyGame to avoid collisions with asteroids and destroy them.</p> <p>By the end of this video course, you'll gain a solid understanding of Python along with a hands-on experience in building amazing games. So let’s Rock &amp; Roll!</p> <p>The codes of this course are uploaded on GitHub: https://github.com/PacktPublishing/-Learn-Python-Programming-with-Games</p> <h1>Style and Approach</h1> <p>Using a simple approach of learning how to efficiently program in Python with the help of interesting games.</p>
Table of Contents (4 chapters)
Chapter 2
Turtle and Tkinter – Driving Game
Content Locked
Section 4
Increasing the Speed of the Game
We want to be able to increase the speed of the game. - We use turtle methods to increase the speed of the game - We adjust the turtle speed settings. - We write Python code to increase driving speed.