semvec/pypi-packages huggingface dataset:
csgame 0.2.1
useful tools for pygame development
Requires Python: >3.0

# csgame
useful tools for pygame development

## instructions
1. Install:
```
pip install csgame
```
2. Initialise in project:
``` python
from csgame import *
```

## features
### csgame.colour
dynamic colours with special features
> BiColour - colour that can swap between 2 colours

> BiColourSmooth - BiColour that has a smooth transition when swapping

> FlashColour - colour that can momentarily flash to another colour

### csgame.menu
useful tools for menus
> Button - interactible button which can be pressed to perform an action

> Menu - holds a collection of buttons and is responsible for updating them

### csgame.player
provides basic player movement
> TopDownPlayer - simple top-down style player movement

> SideScrollPlayer - simple side scroll player movement with gravity

### csgame.camera
manipulates how sprites are drawn as if a camera is looking at them
> CameraSpriteGroup - sprite group which has a camera tracking a target
html-loader 1.0.0
HTML to GUI
Requires Python: >=3.6


# html_loader

## LoaderHTML

Arguments: name: str="Document" — Window's name, icon: str | None=None — Window's icon, width: int=700, heigth: int=700

Functions:

- Thread(fun) — start function from thread (decorator)
- load_html(code: str) — load code
- load_from_url(url: str) — load code from url
- load_file(name: str) — load code from file
- load_file_absolute_path(name: str) — load code from file by absolute path
- run() — show window


Example:

```py
from html_loader import LoaderHTML

loader = LoaderHTML("Test", "icon.png")
loader.load_file("index.html")

# this function will start and run until it ends without affecting the window
@load.Thread
def main():
    url = input("url:")
    loader.load_from_url(url)

loader.run()
```