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
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.1.tar.gz
(44.2 kB
view hashes)
Built Distribution
pytermgame-1.0.1-py3-none-any.whl
(33.8 kB
view hashes)
Close
Hashes for pytermgame-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 082185982b0fecea0b8a897c68de8178fb6cbec19c02f18e788b354e6d213d06 |
|
MD5 | 5bd77d5112a3fccfee6189a2dabfd65d |
|
BLAKE2b-256 | af614d38aae4756fa3dba103dd9c422c546b35e3d1231d6b5518616d6bd12dec |