semvec/pypi-packages huggingface dataset:
PySick 9.8.9
A lightweight 2D game framework using Tkinter

# PySick 
A lightweight **2D game development framework** using Tkinter, designed for simplicity and customization.

## Features 
- **Window Management**
  - Set custom window size and title.
  - Change background color dynamically.

- **Shapes & Drawing**
  - Draw rectangles, circles, ovals, and lines with customizable colors.
  - Fill the screen with a solid color.

- **Collision Detection**
  - Rectangle vs. rectangle (AABB method).
  - Circle vs. circle (distance-based).
  - Circle vs. rectangle (bounding box method).

- **Event Handling**
  - Bind keys dynamically for interaction (`lock()` and `unlock()` methods).
  - Support for real-time keyboard inputs.

- **UI Elements**
  - Add **labels** with customizable font and color.`
  - Create **buttons** with event-driven functionality.
## NOTE:
  ```
  from pysick_main import PySick
  import pysick_main # Second Resort
  ```
## EXAMPLE PROGRAM
```python 
import pysick.pysick_main
import pysick.graphics

game = pysick.pysick_main.InGine(1200, 700)
pysick.graphics.fill_screen(game, 'yellow')

playerx = 0
playery = 0
speed = 10

def left():
    global playerx
    playerx -= speed

def right():
    global playerx
    playerx += speed

def up():
    global playery
    playery -= speed

def down():
    global playery
    playery += speed

game.lock('<Left>', left)
game.lock('<Right>', right)
game.lock('<Up>', up)
game.lock('<Down>', down)

def update():
    pysick.graphics.fill_screen(game,'violet')  # Clear screen
    pysick.graphics.draw_rect(game,playerx, playery, 100, 100, fill='white')  # Correct rect drawing
    game.time_in(16, update)  # Call update again in ~16ms (~60 FPS)

update()
game.sickloop()
```
## Installation 
Install PySick using:
```bash
pip install PySick