A simple package with easy features for using pygame
Project description
Basic readme of the Gregium library, for detail instructions see help of modules or classes
Table of Contents
buttons
Adds extra buttons not found in pyglet, such as push buttons from rects and text entry with borders
Classes
- PushButtonRect - Istance of a push button based on a rect.
- ToggleButtonRect - Instance of a toggle button based on a rect.
- SliderRect - Instance of a slider made of a base and a knob rect.
- BorderedTextEntry - Instance of a text entry widget. Allows the user to enter and submit text.
- MouseDistanceDetector - Creates a widget that detects the mouse distance at any given position; it is reccomended to not have this in a frame so it's able to detect distance no matter what
camera
Camera class for easy scrolling and zooming.
Classes
- Camera - A simple 2D camera that contains the speed and offset.
- CenteredCamera - A simple 2D camera class. 0, 0 will be the center of the screen, as opposed to the bottom left.
commandSystem
The original 'CLI' class in gregium
Classes
- CommmandSystem - Make easy command interpreters that can be used outside, or inside terminal
env
The original module for loading an saving .grg (ENV) files
Functions
- load - Loads ENV from .grg file using a path
gambleCore
Gambling
Classes
- Gambler - A gambler that can communicate with GameInst's to bet chips on it
- GameBase - Base class for all gambling games
- GameInst - Base class for allgambling game instances
- BlackjackInst - Created by Blackjack table
- Blackjack - A Blackjack table for gambling
- Casino - A casino base capable of monitoring losses per table, dealing out chips, and more
imports
Additional tools for importing libraries
Functions
- import_from_file - Imports a module by filename and returns the module instance
old
The (old) core of Gregium
See gregium.old README for specific guildlines
terminalLogging
An easy terminal logger capable of also saving to a file and timestamping
Classes
- Logger -Generates a basic terminal logger
Globals
- PRIMARY - The primary logger used in other gregium libraries
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
File details
Details for the file gregium-0.1.10.tar.gz.
File metadata
- Download URL: gregium-0.1.10.tar.gz
- Upload date:
- Size: 306.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e96a79929074f35cb319bc4b3d87ce6fa563ca4ea51cf69c8ea61dbbadb06ff
|
|
| MD5 |
553079de61ab656c512305e2f34fcac0
|
|
| BLAKE2b-256 |
d2d686147193aea7c3f45614bc46a792c7db8171e1f6c400d82665c5424e0825
|