Pygame facts for kids
![]() |
|
Original author(s) | Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, and others |
---|---|
Developer(s) | Pygame Community |
Initial release | 28 October 2000 |
Stable release |
2.5.2 / 18 September 2023
|
Written in | Python, C, Cython, and Assembly |
Operating system | Cross-platform |
Type | API |
License | GNU Lesser General Public License |
Pygame is a special tool for making video games. It uses the Python programming language. Pygame helps you add cool graphics and sounds to your games. You can use it on many different computers.
Contents
How Pygame Started
Pygame was created by a person named Pete Shinners. He started it in the year 2000. Pygame became a project for everyone to work on together. It's free to use and share. This means you can use it to make games for fun or even to sell!
Pygame Version 2: A New Chapter
A new version of Pygame, called "Pygame Reloaded," was planned in 2009. However, work on Pygame stopped for a while. It started up again at the end of 2016. After more updates, Pygame 2.0 was released on October 28, 2020. This was Pygame's 20th birthday!
What Pygame Can Do
Pygame uses something called the Simple DirectMedia Layer (SDL) library. This helps you make games with real-time graphics. It lets you focus on the game's ideas, not on complicated computer code. Pygame makes it easier to build games using a language like Python.
Cool Features for Game Making
Pygame has many useful features for creating games. These include:
- Handling math for shapes and movement.
- Finding out if two game objects hit each other (called collision detection).
- Managing 2D characters and objects (called sprites).
- Playing music and sounds.
- Working with cameras in your game.
- Changing how pixels look on the screen.
- Making objects bigger, smaller, or spin.
- Using special fonts for text.
Pygame on Your Phone
You can even run games made with Pygame on Android phones and tablets! This is possible with a tool called Pygame Subset for Android (pgs4a). It supports sound, vibrations, keyboards, and even the accelerometer in your phone.
The Pygame Community
There's a fun competition called PyWeek. People use Python, and usually Pygame, to create games for it. The Pygame community has also made many helpful guides and lessons. These help new game makers learn how to use Pygame.
Games Made with Pygame
Many cool games have been created using Pygame, including:
- Frets on Fire
- Dangerous High School Girls in Trouble!
See also
In Spanish: Pygame para niños
- Cocos2d
- Panda3D
- Pyglet