Python is a great language, especially for beginners. Once you get a few concepts under your belt, you naturally want to start making some games! If you are just getting started, you will want to check out my previous (simpler) tutorial called A Simple Python Turtle Graphics Game. This tutorial is similar to the first one, but uses Classes to simplify the code.
Spacewar! was one of the earliest videogames, originally created on a PDP-1 in 1962! The original version did not have gravity or hyperspace options, but later versions did. This tutorial walks you through the steps for creating a somewhat similar game using nothing more than the built-in turtle module.
Python's built-in GUI library, Tkinter, is a great way to get started in the world of GUI programming. You will find a number of useful GUI elements (widgets) that you can use with your programs. In this tutorial, we will take a look at how to create a program that creates a simple To-Do list. It demonstrates how to set up a GUI using Tkinter, call a function when a button is clicked, how to use lists, and how to use the Grid Geometry Manager.
In preparation, I have created a couple of tutorials aimed and the relative beginner. Each project has a video component and an accompanying handout. The video shows in step-by-step fashion how to create each project, while the handout shows the completed scripts.
Project 1: Speed Racer
Seymour Papert and his colleagues invented the programming language Logo back in 1967. Generations of schoolchildren learned to move a little graphical turtle around their computer screens in order to learn the basic concepts behind coding. Python, an excellent programming language for beginners, includes a wonderful turtle graphics module that can be used to program any number of simple computer games.
Tic-Tac-Toe is one of the earliest strategy games that children learn. It has few rules that are easy to grasp which makes it an excellent game to use to learn how to program in Python. In this tutorial, I will walk you through the process of making the game in a step-by-step fashion. This tutorial presupposes that you have at least a passing familiarity with Python concepts such as loops, functions, and lists.
In a recent blog post, I talked about the early days of computer gaming and the then-popular genre of Interactive Fiction, also popularly known as text adventures. As promised, here is the first part in a tutorial series on how to create a simple text adventure in Python.
"You are in a maze of twisty little passages, all alike..." As a middle school student with a love of reading and an active imagination, the words on the screen conjured up visions of monsters, treasure, and danger...all with just a little text.
Recent blog posts
- Simple Python Game Tutorial Using Classes
- Video Tutorial: Python Spacewar Game
- Video Tutorial: Python To-Do-List (GUI Version)
- Video Tutorial: Simple Space Invaders Clone
- Video Tutorial: Python Functions with Turtle Graphics
- Video Tutorial: Python Guessing Game (GUI Version)
- Global Codeathon Scratch Tutorials
- Video Tutorial: A Simple Python Turtle Graphics Game
- Video Tutorial: Tic-Tac-Toe in Python
- In Favor of Standardization in Ed Tech