Skip to main content

A powerful Python library that combines AI image generation with Pygame Zero enhancements. Create stunning games with AI-generated assets and streamlined development workflow.

Project description

PGZPro - AI-Powered Game Development Toolkit

A powerful Python library that combines AI image generation with Pygame Zero enhancements. Create stunning games with AI-generated assets and streamlined development workflow.

🚀 Features

AI Image Generation

  • Flux Model Integration: Generate high-quality images using G4F's Flux AI model
  • Smart Prompt Translation: Automatic translation of non-English prompts
  • Transparent Backgrounds: Create PNG images with transparent backgrounds
  • Custom Dimensions: Generate images in any size up to 1024x1024 pixels

Pygame Zero Enhancements

  • Window Centering: Automatically center your game window on any screen
  • Seamless Integration: Works perfectly with Pygame Zero ecosystem

🛠️ Core Commands

Window Management

import pgzpro  # MUST be imported BEFORE pgzrun

pgzpro.center()           # Center the game window on screen
pgzpro.no_logging(True)   # Disable debug logging (optional)

import pgzrun

AI Asset Generation

# Generate game background (automatically fits screen)
background = pgzpro.bg_generate("fantasy forest with mountains")

# Generate character with transparent background
character = pgzpro.actor_generate("hero knight", "60x80")

# Generate game objects
crystal = pgzpro.actor_generate("magic crystal", "40x40")

⚠️ AI generation needs active internet connection

📦 Installation

pip install pgzpro

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

pgzpro-1.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

pgzpro-1.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pgzpro-1.0.0.tar.gz.

File metadata

  • Download URL: pgzpro-1.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pgzpro-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d257a77d4b6d40ab743cb5a43e6ba0e8a1b44078bcdc37f6429350aeb8dc6063
MD5 3ce00f4342d6f7efae249bc52de78198
BLAKE2b-256 88cb7225c5dd92eafa3e45d64b197fb08de27d2c1bd81da54c544a047a4d0daa

See more details on using hashes here.

File details

Details for the file pgzpro-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pgzpro-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pgzpro-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 022ded24ab82df41c1f9728aac1fd1a6be9c6c15d420b1854ca166900c9770df
MD5 af1315c1f675cbdde84c5dfb770a9a65
BLAKE2b-256 541f27a859d58a2dae13db9a3756efe4591c805efa3a782b2bc7c38827d79ecd

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