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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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