Skip to main content

Like pygame, but in the terminal

Project description

pytermgame

You've seen frameworks for making terminal apps (textual, pytermgraphics, asciimatics etc.), but how about a framework for games ... like pygame?

Installation

pip install pytermgame

Features

  • pygame-inspired structure
  • customizable terminal behaviour (alternate screen, cursor visibility)
  • optimized rendering: game figures out which sprites requires erase and re-render (it takes care of overlapping sprites too!)
  • provides both tick-based and thread-based event systems
  • cross-platform support for reading and identifying keys

Examples

Examples are included in the repo root (there's 2 currently)

Instructions are in the file of the example (docstrings)

Future plans

  • cross-platform support for more keys
  • simulated scrolling (extended axis)
  • a "Scene" or "Screen" system
  • use integer IDs to reference sprites (for performance?)
  • support color using ANSI (Char class?)
    • option to remain black and white (less memory)
  • cross-platform mouse support
  • more examples

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytermgame-1.0.2.tar.gz (45.4 kB view hashes)

Uploaded Source

Built Distribution

pytermgame-1.0.2-py3-none-any.whl (35.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page