Skip to main content

A framework for creating terminal based games in python

Project description

gg : A library for terminal based games.

GG is a library for creating terminal based games in python. Complete with an abstraction over handling the terminal, you can decalare objects and place then anywhere over the terminal area. There is a complete sample of a brick breaker game provided. However this does not rely on any curses implementation, so some features may be missing.

Major classes

The following interfaces have been created. Scene class helps to abstract a layout as it maintains ownership of all the objects. A typical usage for a Scene might be analogous to that of a level. The Base class that can be added to a Scene is that of Entity.

Documentation

class diagram

Color

The Color class support 256*256*256 color values.

Scene

The Scene base class acts as a controller for all the objects to be displayed on a screen. A game may contain multiple scenes, Eg. One for the HUD and one for the actual gameplay. Scenes may overlap.

Surface

The Surface class refers to a rectangle to be blitted onto the screen

Sprite

The Sprite class contstrains the Surface class with a predefined sprite layer for each of the characters.

Installation

Use pip to install

pip install gg-abakfja

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

gg-lib-0.0.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gg_lib-0.0.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file gg-lib-0.0.2.tar.gz.

File metadata

  • Download URL: gg-lib-0.0.2.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for gg-lib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0970e6f63b0d7c556119cd291277f686ed12d18eedb69c81a4f4da3541c96d68
MD5 475a4f81bc6f8630eb832dca7eff3567
BLAKE2b-256 688f1aa78ec00525895a2980bf4a2992dae3f4a52a93ca5a0c7f844a22d72d81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gg_lib-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for gg_lib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e35f85c23aaf96445a5c03e1bd6fee808437e4d01416efcac1b6aa16f3582f2a
MD5 cf8f5d89ba8fba204203a86f50e62a22
BLAKE2b-256 53cf0d4ada8e024ad29035d37511f54b1dbfac1bc5706cc508704412fcb788b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page