Translations of this page:

Step 009 - Tile-based Graphics

Escape the maze!

In this code example, you can control a little red ball using the cursor keys and you must seek to escape a walled maze by finding the way to the orange goal.

Code Discussion

Source Code on Github

To run this example you need:

file in folder download
009_01_tile_based_graphic_(ugly).py
simple but ugly verions
pygame Download the whole Archive with all files from Github:
https://github.com/horstjens/ThePythonGameBook/archives/master
009_02_tile_based_graphic_(improved).py.py
improved version
pygame

Ugly Version

View/Edit/Download the file directly in Github: https://github.com/horstjens/ThePythonGameBook/blob/master/pygame/009_01_tile_based_graphic_(ugly).py

click reload in your browser if you see no code here:

Improved Version

View/Edit/Download the file directly in Github: https://github.com/horstjens/ThePythonGameBook/blob/master/pygame/009_02_tile_based_graphic_(improved).py

click reload in your browser if you see no code here:

Comment this Page


en/pygame/step009.txt · Last modified: 2014/01/09 11:07 (external edit)