substitutefor

Contribute to the catalog

Improve pygame

Help someone find the right substitute. Share what you know, explain its limits, and show your sources.

Keep useful details and sources from the current draft as you make your changes.

Sign in or create an account ↗ to earn credit. You can also submit anonymously and save a private receipt. Contributions go to review before publication.

Your own projects are welcome, and an AI assistant can contribute on your behalf. Describe the project accurately and cite sources. You can submit immediately; no minimum karma or prior reviews are required.

1

Identify the subject

Which product or service are you writing about?

This entry can substitute forOptional

Choose the product this entry can replace. For example, when editing GIMP, choose Photoshop to describe GIMP as a substitute for Photoshop. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

0 of 200 substitute relationships.

Draft comparisons

These comparisons link to articles by their planned address. Edit them under Structured data.

  • pygame-ce — Building code-driven 2D games and multimedia applications in Python
2

Write & cite

Help readers understand what it does and where it falls short.

Article sections and citations
Sources for the overview

Sources

Reuse throughout the article

Add each source once. Select it under the paragraphs it supports.

Source 1 · pygame README

Source 1

Source details

To remove this source, first uncheck its citations.

Source 2 · pygame documentation

Source 2

Source details

To remove this source, first uncheck its citations.

Source 3 · pygame Surface reference

Source 3

Source details

To remove this source, first uncheck its citations.

Source 4 · pygame event reference

Source 4

Source details

To remove this source, first uncheck its citations.

Source 5 · pygame sprite reference

Source 5

Source details

To remove this source, first uncheck its citations.

Source 6 · pygame mixer reference

Source 6

Source details

To remove this source, first uncheck its citations.

Source 7 · pygame-ce README

Source 7

Source details

To remove this source, first uncheck its citations.

Source 8 · Installing pygame-ce

Source 8

Source details

To remove this source, first uncheck its citations.

Article sections

Explain uses, limitations, or compatibility. Give each paragraph the sources that support it.

1 · Main loop and responsiveness

Section 1

Sources for paragraph 1
2 · Images and drawing

Section 2

Sources for paragraph 1
3 · Sprites and game objects

Section 3

Sources for paragraph 1
4 · Audio behavior

Section 4

Sources for paragraph 1
5 · Environment and documentation

Section 5

Sources for paragraph 1
6 · Licensing

Section 6

Sources for paragraph 1
7 · Relationship to Community Edition

Section 7

Linked to pygame-ce. Keep surrounding spaces so the text reads naturally.

Sources for paragraph 1
Structured data Advanced

For agents and detailed edits, including links within paragraphs. Follow the article schema, or use the API. Applying JSON replaces the body, references, article address, and draft comparisons shown here.

Include up to 200 draft comparisons, preserving the existing sources and relationships when adding more.

3

Add useful details Optional

Add what you know. You can submit without filling these in.

Capabilities4

Describe a task this product can perform, its limits, and the evidence. Use “unknown” if the evidence does not show whether the task is supported; “unsupported” means the evidence shows it cannot do the task.

Help readers find related options Optional

Have a useful detail to add? Choose a question, give a short answer, and reuse an article source. Skip this section if you prefer.

Which article sources support this answer?
Only saved answers are included. A blank section is fine.
Screenshots Optional

Show the website or a useful part of its interface. Add up to three still PNG, JPEG or WebP images, each up to 5 MiB. Screenshot guidelines ↗

Crop to the relevant screen. Remove personal information, credentials, account balances and private messages. Images keep their stated rights; they are not automatically CC0.

Sign in to upload screenshots. You can submit the article without them.

License, other names & status
Sources for the license or business model
4

Check & submit

Give reviewers a clear summary and a source they can check.

Preview your article

pygame

Python multimedia library for code-driven games using SDL-based graphics, input and audio.

Overview

pygame is a Python library for games and multimedia applications built on SDL and related libraries. It provides image surfaces, drawing, input events, sound and optional sprite-management helpers while leaving the main loop under application control. This article covers the upstream pygame distribution, distinct from the separately maintained pygame-ce fork.[1][2][7]

Main loop and responsiveness

A pygame program normally initializes its modules, creates a display, processes events, updates application state and draws each frame. The event queue is bounded and can drop newly arriving events when full. Its documentation therefore makes regular event processing part of the application's responsibility, including when the program otherwise polls device state directly. Event operations also carry restrictions tied to the thread that initialized the display.[2][4]

Images and drawing

Surfaces represent images with a defined resolution and pixel format. Blitting copies image content onto another surface, with clipping and transparency controlling the result. A subsurface can share its parent's pixels, so modifying either can affect the same underlying image. For substantial pixel work, the documentation points to PixelArray or NumPy-backed surfarray operations instead of repeated individual pixel calls.[3]

Sprites and game objects

Sprite and Group classes are optional conveniences rather than a mandatory engine architecture. Developers supply image and rectangle attributes for basic group drawing and can use different groups for rendering and interaction. Collision helpers cover shapes such as rectangles, circles and masks. The module warns that sprites are not thread-safe, so introducing worker threads does not automatically make shared object manipulation safe.[5]

Audio behavior

The mixer loads Sound objects and plays them through a configurable pool of channels, with mixing occurring in background threads. A separate music interface streams long-running tracks instead of loading an entire sound into memory. Mixer availability depends on its SDL_mixer dependency and successful initialization. Buffer configuration can trade latency against dropout risk, so audio behavior should be evaluated with the actual distribution and hardware.[6]

Environment and documentation

The upstream package is distributed as pygame and depends on Python, SDL and several media-related libraries. The README warns that online documentation follows development and may describe features newer than an installed release. A project's supported Python version, packaged native dependencies and feature expectations should consequently be evaluated together, rather than inferred from a documentation page's availability alone.[1]

Licensing

The README identifies LGPL version 2.1 as pygame's license and explicitly permits commercial and closed-source games. Modifications to the library itself and redistribution obligations remain separate from the license chosen for game code. It also identifies bundled example programs as public domain and directs developers to the dependency notices for other incorporated components.[1]

Relationship to Community Edition

pygame and pygame-ce offer overlapping Python game-development APIs, but they are distinct distributions. CE's installation guide warns against keeping both installed together because of package conflicts. Choosing upstream pygame can cover projects that stay within the shared API, but CE-only functions need separate review before switching back. Neither the common import name nor project ancestry establishes identical behavior for every game.[2][7][8]

References

  1. pygame README

    Scope, installation, documentation versions, dependencies and licensing

    vendor · retrieved 2026-10-07
  2. pygame documentation

    Application-controlled game loop and module overview

    vendor · retrieved 2026-10-07
  3. pygame Surface reference

    Images, blitting, clipping, pixel access and shared subsurfaces

    vendor · retrieved 2026-10-07
  4. pygame event reference

    Queue capacity, per-frame handling and display-thread restrictions

    vendor · retrieved 2026-10-07
  5. pygame sprite reference

    Optional Sprite/Group classes and collision helpers

    vendor · retrieved 2026-10-07
  6. pygame mixer reference

    Optional mixer, channels, background playback and streaming music

    vendor · retrieved 2026-10-07
  7. pygame-ce README

    Separate fork and Python multimedia scope

    vendor · retrieved 2026-10-07
  8. Installing pygame-ce

    Conflicting package installation and isolated environments

    vendor · retrieved 2026-10-07

Also included: 4 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.

Contribution type

Agree to CC0 above to submit your contribution.