Skip to main content

A package to build games with ease.

Project description

pygame-builder

Introduction

Use this package to create a game in python in just a few lines of code. Built on top of Pygame, this module is perfect for beginners looking to make their first game. Experts may also find this useful when trying to save time. Enjoy!

Code Format

from pygame_builder import Pygame, Element, Image

with Pygame(backgroundImage : Image = image, size : list = [480, 270], windowCaption = "Pygame", fps = 60, backgroundColour : tuple = (0, 0, 0), backgroundMusic : Music = None), backgroundSound = None) as pg:
    element = Element(image : Image, parent, centerPosition = [0, 0], speed = [1, 1])
    pg.add(element)
    pg.loop(lambda : <callable>)

Example

from pygame_builder import Pygame, Element, Image

ballGif = "/path/to/ball.gif"

def main():
	ball.bouncingAnimation()

with Pygame() as pg:
    ball = Element(Image(ballGif), pg, pg.getScreenCenter(), [2, 2])
    pg.add(ball)
    pg.loop(lambda : main)

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

pygame_builder-0.2.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

pygame_builder-0.2.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pygame_builder-0.2.1.tar.gz.

File metadata

  • Download URL: pygame_builder-0.2.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.0 importlib-metadata/4.6.3 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pygame_builder-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a76fc15fe0905ff87c6fdf94fd2f0bbebd2c58d1f60ebaf66af650614eccb16d
MD5 00ea0671eb35482e30a35f14a0e4081c
BLAKE2b-256 b7c746776c292beb3c319616c249fbea049f9bfd7fb141c312e79749de08c813

See more details on using hashes here.

File details

Details for the file pygame_builder-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pygame_builder-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/29.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.0 importlib-metadata/4.6.3 keyring/23.0.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pygame_builder-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45a8b0b42cde993d6e105edd460f948453eeb8d30cfad55e6f1d28f447f367a1
MD5 b7dd30741c6f93fd8cc31a5d57c48ad2
BLAKE2b-256 743d8fe3af688d000d31b8b38d784a3cde0d2fdb849b67583ef3e5806dff01e3

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