Skip to main content

Terminal-based graphical game engine

Project description

python Code style: black Checked with mypy linting: pylint

Termgame

Terminal-based graphical game engine

Created by Gregory Glatzer.

Features

  • Simple, easy-to-use API inspired by Unity.
  • Physics engine powered by Pymunk
  • Ability to read and render sprites from image files.
  • Framerate and physics timestep control.
  • Statically typed with mypy.
  • User input with keyboard.

Examples

To run the examples from the source code, first "build" the package by running pip install . from the root directory of the project (where setup.py is). Then, you can run any of the examples by running

python termgame/examples/<example_name>/game.py

Contributing

Contributions are welcome! Please open an issue or pull request if you have any suggestions or bug reports. The main branch is used for releases, so please open pull requests against the development branch.

Before Committing

Before committing, please run the following commands to ensure that your code is formatted correctly and passes all tests:

cd termgame
black src
mypy src
flake8 src --max-line-length=99
pylint src

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

termgame-0.0.2.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

termgame-0.0.2-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file termgame-0.0.2.tar.gz.

File metadata

  • Download URL: termgame-0.0.2.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for termgame-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1e6e40ee934484d67aff1390d03d6a8c266374536d00afc4b1f072dda60fcc44
MD5 e2af42e749b8f68605c3603aceedd544
BLAKE2b-256 850faed3d2005ce16f66465581c22162f83e2a419381e490f92346de45a44831

See more details on using hashes here.

File details

Details for the file termgame-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: termgame-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for termgame-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 14dfafe9d8e71c637dbf2b32dc5deaad7e41960c6833a4ca7b5569fc9ad1842b
MD5 5a7e597ef58a38973c17f4602932bb7d
BLAKE2b-256 96a455b74188f4c2f13a45da219e4bfad6920865d541321119429d396b4d6a07

See more details on using hashes here.

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