Skip to main content

Like pygame, but in the terminal

Project description

pytermgame

You've seen frameworks for making terminal apps (textual, pytermgraphics, asciimatics) ... 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!)
  • cross-platform support for reading and identifying keys

Examples

Currently there is one only: jet_and_ball.py

Use up and down arrows to control, just dodge the balls

The grey line is for alignment

TODO:

  • support for more keys
  • simulated scrolling (extended axis)
  • use integer IDs to reference sprites (for performance?)
  • support color using ANSI (Char class?)
    • option to remain black and white (less memory)
  • 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.1.tar.gz (44.2 kB view hashes)

Uploaded Source

Built Distribution

pytermgame-1.0.1-py3-none-any.whl (33.8 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