- Installing pygame. Go to the pygame downloads page and scroll down to the Mac section. Find the download titled Lion apple supplied python: pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip and download and install it. It says Lion, but it will work with Yosemite. Creating a short sample pygame.
- The current version of Pygame at the time this book was written is 1.9.1. If you see a newer version on the website, download and install the newer Pygame. For Mac OS X, download the.zip or.dmg file for the version of Python you have and run it. For Linux, open a terminal and run “ sudo apt-get install python-pygame ”.
Pygame is a Free and Open Source cross-platform library for the development of multimedia applications like video games on Python. It uses the Simple DirectMedia Layer library and several other popular libraries to abstract most common functions and makes writing these program a more intuitive task.
Latest version Released:
A zero-boilerplate 2D games framework
Project description
A zero-boilerplate games programming framework for Python 3, based on Pygame.
Some examples
Pygame Zero consists of a runner pgzrun that will run a Pygame Zero scriptwith a full game loop and a range of useful builtins.
Here’s some of the neat stuff you can do. Note that each of these is aself-contained script. There’s no need for any imports or anything else in thefile.
Draw graphics (assuming there’s a file like images/dog.png orimages/dog.jpg):
Play the sound sounds/eep.wav when you click the mouse:
Draw an “actor” object (with the sprite images/alien.png) that moves acrossthe screen:
Documentation
The full documentation is at http://pygame-zero.readthedocs.org/.
Read the tutorial at http://pygame-zero.readthedocs.org/en/latest/introduction.htmlfor a taste of the other things that Pygame Zero can do.
Contributing
The project is hosted on BitBucket:
If you want to help out with the development of Pygame Zero, you can find someinstructions on setting up a development version in the docs:
Release historyRelease notifications | RSS feed
1.2
1.1
1.0.2
Download Pygame For Mac
1.0.1
1.0
1.0beta1 pre-release
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pgzero-1.2-py3-none-any.whl (70.0 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size pgzero-1.2.tar.gz (2.2 MB) | File type Source | Python version None | Upload date | Hashes |
Python Pygame Download
Hashes for pgzero-1.2-py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | f90d1e61cb6945ad55bd1cb2a4a13ca6f1a3850a31c173dce3a739df9b024b8f |
MD5 | f8aa9ac31c7813cea3682bf9686ebb0b |
BLAKE2-256 | 48e5e5f14292373cb5fc7539aa01307b184c1e3c954d68945d8c44778669dd82 |
How To Download Pygame On Macbook
CloseHashes for pgzero-1.2.tar.gz
Download Pygame Mac Os
Algorithm | Hash digest |
---|---|
SHA256 | 91e641d545c6235a24719dea0fd83c8429e92a8b5ab1756bef145128e8db9017 |
MD5 | b627a2667ad7c2ccbe22c3875bbd2822 |
BLAKE2-256 | 4087fbb77cfd9c6f2dbe63d09d3e693aa2bcde63995f6f014b3b0bda5d3dbcdd |