Softwr
Pygame logo

Pygame

Python library for game development

Pygame is free to use. Pygame is a free, open-source Python library for creating games. Softwr lists it under Game Development. Pygame is made by Pygame Community, launched in 2000, available on Windows, macOS, Linux, Android.

Overview

What is Pygame?

Pygame is a free, cross-platform library of Python modules for writing video games. Originally written by Pete Shinners to replace PySDL, it has been a community project since 2000 and is released under the GNU Lesser General Public License, which allows it to be distributed with both open source and commercial software. It uses the Simple DirectMedia Layer (SDL) library, so that real-time game logic can be written in Python without the low-level work of C. It provides graphics, sound through a mixer module, input handling, vector maths, collision detection, 2D sprite management, MIDI support, camera access and pixel-array manipulation, and the community runs a regular PyWeek game competition. Pygame 2.0 was released on 28 October 2020, after a long gap in development, and a fork called pygame-ce (Community Edition) adds support for newer Python versions, faster surface blitting and WebAssembly, with work under way on SDL3. Android use was possible through Pygame Subset for Android. There is no price, subscription or paid edition; it is installed as a Python package. Pygame is a code library rather than a game engine, so it has no visual scene editor, built-in physics engine or asset pipeline, and developers write that structure themselves. It is best suited to learning, prototypes, game jams and small 2D projects.

What people use it for

  • Game development
  • 2D graphics
  • Python-based game creation
  • Educational programming

The honest half

Where does Pygame fall short?

The limits buyers hit most with Pygame: development stopped from 2009 until the end of 2016 before version 2.0 shipped in October 2020, so the project's history is uneven; and android support relied on Pygame Subset for Android (pgs4a); the library is not an engine with a visual editor. Each is concrete and checkable: the half of a review a vendor will not write.

  • Licensed under GNU LGPL v2.1, free to use even in closed-source and commercial games, no paid tier
  • Development stopped from 2009 until the end of 2016 before version 2.0 shipped in October 2020, so the project's history is uneven
  • A community fork, pygame-ce, exists after disagreements between core developers and the repository owner, so docs and features differ between the two
  • Android support relied on Pygame Subset for Android (pgs4a); the library is not an engine with a visual editor

Cross-shopped

What are the alternatives to Pygame?

The closest alternatives to Pygame are Godot Engine, LÖVE and Raylib. Each is a tool buyers genuinely weigh against it, with the reason why.

  • Pygame vs Godot Engine

    Godot Engine: Godot is a free, open-source 2D and 3D game engine, an alternative to building games in code with the Python library Pygame.

  • Pygame vs LÖVE

    LÖVE: Free 2D framework using Lua, with a similar library-first approach for developers who prefer a lighter scripting language

  • Pygame vs Raylib

    Raylib: Small C library for 2D and 3D games with bindings for many languages, including Python, and a simple API

  • Pygame vs Phaser

    Phaser: Free JavaScript framework for 2D games that run in the browser, suited to web distribution rather than desktop

Pricing

How much does Pygame cost?

Pygame is free to use. Taken from the vendor's own pricing page; prices move, so check before you buy.

Free

Free

  • Full library
  • Python support
  • Graphics rendering
  • Audio support
  • Community support
  • Open-source

Capabilities

What can Pygame do?

Pygame lists 19 features, including graphics rendering, audio playback and input handling.

  • Graphics rendering

  • Audio playback

  • Input handling

  • Sprite system

  • Collision detection

  • Font rendering

  • Animation support

  • Event system

  • Python

    Integration with Python

  • NumPy

    Integration with NumPy

  • Matplotlib

    Integration with Matplotlib

  • Open-source

    Open-source security feature

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

How much does Pygame cost?

Pygame is free and open source software with no cost to use or distribute.

Source

Behind it

Who makes Pygame?

Pygame is made by Pygame Community, founded in 2000 and based in Community-driven.

Company
Pygame Community
Based in
Community-driven

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

  • Pygame (Wikipedia)en.wikipedia.orghistory, LGPL, SDL, features, pgs4a Android, pygame-ce fork, 2.0 release on 28 Oct 2020, development gap 2009 to 2016
  • pygame-ce documentationpyga.meLGPL licence description, pygame-ce docs
Share

Keep looking

Where to go from Pygame

Best Game Development software for

Compare Pygame with

Other Game Development software

  • A simple and easy-to-use library for game development

    Free plan10 researched notes
  • Open-source retro game engine for Python with 16 colours and 4 sound channels

    Free plan10 researched notes
  • Fast, free, and fun open source framework for Canvas and WebGL

    Free, then $12/mo17 researched notes
  • Open-source Python game engine for 2D and 3D games under the MIT licence

    Free plan11 researched notes
  • Free and open-source 2D and 3D game engine

    Free plan12 researched notes
  • Framework for making 2D games in Lua

    Free plan15 researched notes
  • Free cross-platform C library for low-level audio, input and graphics access

    Free plan12 researched notes
  • Free C++ multimedia library for 2D graphics, audio, windows and networking in games

    Free plan12 researched notes
  • 2D game engine and editor with a drag and drop system and GML scripting language

    Free plan15 researched notes
  • Free 2D skeletal animation solution

    Free plan4 researched notes
  • The next generation RPG creation software

    From $99.99/one-time13 researched notes
  • Free, open-source 3D engine for game development

    Free plan11 researched notes
  • Open-source dedicated game server hosting and scaling on Kubernetes

    Free plan12 researched notes
  • Create cross-platform 2D games and apps

    Free plan10 researched notes
  • Open-source 3D game engine integrated with Blender

    Free plan9 researched notes
  • MIT-licensed modern C++ game engine for mobile, desktop, Xbox and WebAssembly

    Free plan11 researched notes
  • Free open-source 3D and 2D game engine with a visual editor and a Pascal API

    Free plan11 researched notes
  • Open-source Node.js framework for real-time multiplayer games, with managed hosting

    Free plan12 researched notes

Softwr does not host reviews and shows no star rating for Pygame, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on Pygame

Best Game Development software alternatives

Free open-source browser tool for animation and simple games

open-source

Drag-and-drop visual novel studio with browser export and no royalties

one-time

Free cross-platform level editor for Quake-engine games

open-source

Free open-source pixel art multitool made with Godot

open-source

Visual desktop editor for building Phaser 4 games, from $12 a month

subscription

Open-source high-level multiplayer networking library for Unity

open-source

Tiny, fast, fully open-source HTML5 game engine for 2D and 3D

open-source

Free open-source sprite editor and animation tool, forked from Aseprite

open-source

Compare Pygame with alternatives