An object-oriented wrapper for the Python curses library.
Project description
crsgame
An object-oriented wrapper for the Python curses library.
Installation
pip install crsgame
Example
import curses
from crsgame import Renderer, Color, Vector, Box
def main(stdscr):
r = Renderer(stdscr, fps=15)
r.RegisterColor("white", Color("white"))
obj = Box(Vector(5, 5), Vector(2, 2), True, "#", "white")
def loop(deltaTime):
r.Render([box])
r.RenderStep.Connect(loop)
r.Run()
curses.wrapper(main)
Features
- Object-oriented curses API
- Automatic delta rendering
- Shapes, colors, input handling
- Asynchronous game loop support
Links
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
crsgame-0.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crsgame-0.1.0.tar.gz.
File metadata
- Download URL: crsgame-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
818f938bc4a26af31918ec4ef820192a3693e17df52d2aeadb76bf9f90a83b93
|
|
| MD5 |
c6c2a2c76cc38ae70f10302c1410a782
|
|
| BLAKE2b-256 |
43435baba9b734040fc6d079de18e17cc7446529507f8286e0ad88cf58b33d1e
|
File details
Details for the file crsgame-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crsgame-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62d689dc1472fec6074f7c221b741cc0109f319c20d0b06e1b4b8b48bd409622
|
|
| MD5 |
c11dcc7350d8efab0c1d84d17ffa037e
|
|
| BLAKE2b-256 |
e5b586a7b106ef942fc38a9796e78bfb370d920012d171a9eca5b42a0dd3213d
|