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
Release history Release notifications | RSS feed
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)
Built Distribution
pytermgame-1.0.2-py3-none-any.whl
(35.3 kB
view hashes)
Close
Hashes for pytermgame-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50453ed092731a925429465eaf81f513b89e12ee8177d0de4dc215ecf5d39976 |
|
MD5 | 7c1e0a808e611a7c62d386e60657470d |
|
BLAKE2b-256 | 0446258ffacafba8f5f8a9b86f853e89c3dc6f287cb20f0886a6fa9f988007d1 |